输入一个整数N(1N100)
输入一个整数N(1<N<100),然后输入N个整数(可以有重复),输出最大的数及其下标;
void print() { int count; int num[100]; int i; int index; int max; printf("请输入整数个数:"); scanf("%d", &count); if ((1 >= count) | (100 = max){ max = num[i]; index = i; } } printf("第%d个整数为最大正数,是:%d\n",(index+1),max); }
本程序没有调试,提问者自己调试 #include main() { int i,j,n,m,max_m,subindex; do { scanf("%d",&n); } while( n>=100 || nmax_m) { max_m =m; subindex =i+1;} } printf("max number is %d, and its sub index is %d\n",m, subindex); }
答:#include main() { int i,n,k=0; printf("please enter n:"); scanf("%d",&n); for(i=...详情>>
答:详情>>
答:x->0:lim(1+x)^(-1/x) =1/[x->0:lim(1+x)^(1/x) =1/e x->∞:limxsin(1/x) =1/x->0:lim[...详情>>
答:求证类型 求解类型详情>>