长大蔡徐坤
2019-08-01 11:58
#include <stdio.h>
int main()
{
//定义小编兜里的钱
double money =12 ;
//定义打车回家的费用
double cost =11.5 ;
printf("小编能不能打车回家呢:");
//输出y小编就打车回家了,输出n小编就不能打车回家
printf("%c\n",money>=cost ? 'y' : 'n' );
return 0;
}
她是自己定义的相当于yes或no
因为这个是输出给你看的呀。
C语言入门
928241 学习 · 21546 问题
相似问题
回答 3
回答 3