#include"stdio.h"
int main()
{
double a,b,c,d;
char x;
scanf("%lf",&a);
x>=97&&x<=122;
while(b<a)
{
scanf("%s %lf %lf %lf",&x,&b,&c,&d);
b++;
printf("%s %.2lf",x,b+c-d);
}
}
這里面的 x>=97&&x<=122; 是什么意思?有什么用?
uj5u.com熱心網友回復:
97-122是小寫字母a-z的ASCII碼uj5u.com熱心網友回復:
寫成 x>='a' && x<='z' 也可以。轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/227416.html
標籤:新手樂園
