题解 3020: 最大数位置

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

最大数位置

摘要:解题思路:先用数组存储数据,然后将第一个值定为最大值,利用循环遍历数组和最大值比较如果大于最大值,将这个值赋值为最大值。注意事项:输出的i要加一参考代码:#include<stdio.h>#inclu……

选择法)最大数位置

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[1001];    int i;    int j;    int n;    int max……

3020: 最大数位置

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>int main(){ ……