标题:新人求罩、简单的问题= =、
取消只看楼主
真的想你爱你
Rank: 1
来 自:nj
等 级:新手上路
帖 子:2
专家分:0
注 册:2015-11-18
结帖率:0
已结贴  问题点数:10 回复次数:1 
新人求罩、简单的问题= =、
     写一个代码
总分100 分
90-100是等级A;
80-89是等级B;
70-79是等级C
60-69是等级D
0-50是等级E

#include<stdio.h>
void main()
{
   float fScore;
   printf("Plesae input your score:\n");
   scanf("%f",&fScore);
   

   if((fScore)>=90);&&(fScore<=100))
      printf("Your score is A\n");
   else if(fScore>=80)
      printf("Your score is B\n");
   else if(fScore>=70)
      printf("Your score is C\n");  
   else if(fScore>=60)
      printf("Your score is D\n");
   else if(fScore>0)
      printf("Your score is E\n");
   else
      printf("You have no score !");
}






上面是我打好了的代码 可是却显示有个 error- -
  大家帮我看看 哪儿出错了
唉新人入门  啥子都不懂。。。
2015-11-21 14:08
真的想你爱你
Rank: 1
来 自:nj
等 级:新手上路
帖 子:2
专家分:0
注 册:2015-11-18
得分:0 
回复 2楼 hellovfp
嗯 现在晓得问题在哪儿了  


   if (fScore>=90&&fScore<=100)
       printf("Your score is A\n");
  

CM
2015-11-21 14:51



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-459439-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014116 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved