#include <stdio.h>int main(){? ? //定義小編兜里的錢? ? int money = 12 ? ;?? ? //定義打車回家的費(fèi)用? ? double cost = ?11.5 ; ?? ? printf("小編能不能打車回家呢:");?? ? //輸出y小編就打車回家了,輸出n小編就不能打車回家? ? printf("%c\n",money>=cost? 'y' : 'n');? ? return 0;}
- 3 回答
- 0 關(guān)注
- 1411 瀏覽
添加回答
舉報(bào)
0/150
提交
取消