编译错误,解决不了!
#include<stdio.h>#include"stdbool.h"
int main()
{
float a,b,score;
scanf("%f",&score);
_Bool a,b;
a=score>=60;
b=score<=69;
if(a & & b)
printf("The grade is C\n");
}
#include<stdio.h> #include"stdbool.h" int main() { float score = 0.0; scanf("%f", &score); _Bool a = false; _Bool b = false; a = score >= 60; b = score <= 69; if (a && b) printf("The grade is C\n"); return 0; }
1 #include<iostream> 2 using namespace std; 3 4 int main(void){ 5 float score;//这里就只用定义一个 6 cin>>score; 7 bool c,d;//定义,用于判断真假 8 c=score>=60; 9 d=score<=69; 10 if(c&&d) 11 cout<<"The grade is C\n"<<endl; 12 return 0; 13 } ~