当前位置: 代码迷 >> C语言 >> HELP ME!!
  详细解决方案

HELP ME!!

热度:292   发布时间:2008-04-14 20:53:01.0
HELP ME!!
#include <stdio.h>
int main()
{int a,max=0,i=1;
    while(i<=10)
    {
        printf("\n请输入第%d个数值:");
        scanf("%d",&a);
        if(max<a)
        max=a;
        i=i+1;
        }
        
    printf("max=%d\n",max);
    return 0;
    }
搜索更多相关的解决方案: HELP  int  max  main  include  

----------------解决方案--------------------------------------------------------
THERE IS SOMETHING WRONG IN IT,AND IT CANNOT WORK!!!
----------------解决方案--------------------------------------------------------
printf("\n请输入第%d个数值:");//ERROR!!
----------------解决方案--------------------------------------------------------
printf("\n请输入第%d个数值:");
;错了 还有 %d 对应的是 printf("\n请输入第%d个数值:",i);
----------------解决方案--------------------------------------------------------
  相关解决方案