|
|
发表于 2012-4-6 08:37:46
|
显示全部楼层
本帖最后由 莫名其妙 于 2012-4-6 08:44 编辑
My English is not good with the Chinese answer
int i=0;
scanf("&d",&i); 数据要用%d
if(i>=90&&i<=100)
printf("Very Good! Your got A!\n",i);
else if (i<90&&i>=80)
printf("well, Still Good!It's a B.\n",i);
else if (i<80&&i>=70)
printf("good.C\n",i);
else if (i<70&&i>=60)
printf("Good LUck! U got a D.\n",i);
else printf("Sorry, U lost again!\n",i);
这些 i 是什么意思? 你如果只需要输出语句 不需要输出你上面输入的数据的话后面的i 不能写.
要不就写成printf("******%d***",i); 这种输出语句和i的值
而且你上面还给i 赋了初值 i=0 然后又 scanf() 输入i .
|
|