#include <stdio.h>
#include <stdio.h>
int main()
{
??? //定義小編兜里的錢(qián)
??? double money = 12????? ;
??? //定義打車(chē)回家的費(fèi)用
??? double cost = 11.5?????? ;?
??? printf("小編能不能打車(chē)回家呢");
??? //輸出y小編就打車(chē)回家了輸出n小編就不能打車(chē)回家
??? printf("%c"cost>=money?'y':'n'??????????????????????? );
??? return 0;
}
2019-08-26
#include <stdio.h>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
#include <stdio.h>
int main()
{
??? //定義小編兜里的錢(qián)
??? double money = 12????? ;
??? //定義打車(chē)回家的費(fèi)用
??? double cost = 11.5?????? ;?
??? printf("小編能不能打車(chē)回家呢");
??? //輸出y小編就打車(chē)回家了輸出n小編就不能打車(chē)回家
??? printf("%c"money>=cost?'y':'n'??????????????????????? );
??? return 0;
}