0
已解决
30分代码
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a+b>10&&a>b){
cout<<"excellent";
}
if(a+b>10&&a>=b){
cout<<"good";
}
if(a+b<10){
cout<<"bad";
}
return 0;
}
哪错了
沈峻宇在2020-03-12 11:24:55追加了内容
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a+b>10&&a>=b){
cout<<"excellent";
}
if(a+b>10&&a<=b){
cout<<"good";
}
if(a+b<10){
cout<<"bad";
}
return 0;
}
90分代码
沈峻宇在2020-03-12 11:26:01追加了内容
龙舟!!!
你去哪了!!!

0
已采纳
0
你好
你在if(a+b>10&&a>=b)这里犯了错。
题目是a和b的总数大于等于10而不是大于。
而且是a<=b不是>=
一定AC!!
望采纳!!
潘晨皓在2020-03-12 11:21:13追加了内容

潘晨皓在2020-03-12 11:46:07追加了内容
望采纳!!!!!!!!!!!!!!!

潘晨皓在2020-03-12 11:46:45追加了内容
是a+b>=10!!!
0




