| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 800 人关注过本帖
标题:分支结构问题
只看楼主 加入收藏
FrankloveCyy
Rank: 1
等 级:新手上路
帖 子:33
专家分:0
注 册:2019-5-5
结帖率:11.11%
收藏
 问题点数:0 回复次数:1 
分支结构问题
#include<stdio.h>
int main(void){
    int score;
    scanf("%d",&score);
    if( score < 60)
{
    printf("The score is E!\n");
}
    else if((score>=60|| score==60) && score<70)
    {
    printf("The score is D!\n");
    }
    else if((score>70|| score==70) && score<80)
    {
    printf("The score is C!\n");
    }
    else if((score>80 || score==80) && score<90)
    {
    printf("The score is B!\n");
    }
    else
    {
    printf("The score is A!\n");
    }
    return 0;
}
不懂,这里到底哪里错了哈- -·为什么一直编译不能通过
搜索更多相关主题的帖子: 结构 score printf The || 
2019-05-09 22:44
FrankloveCyy
Rank: 1
等 级:新手上路
帖 子:33
专家分:0
注 册:2019-5-5
收藏
得分:0 
我好像自己找到哪里出问题了,原来是我的">" "<" 全部不是键盘上直接打出来的符号,而是用中文拼音找出来的大小写,系统读不出来,哈哈,2B了
2019-05-09 22:56
快速回复:分支结构问题
数据加载中...
 
   



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

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