#include<stdio.h> int main() { double money = 12; double cost = 11.5; printf("小编能不能回家呢:"); printf("%c\n",money>=cost ? "y" : "n"); return 0; }
‘’单引号用于界定字符常量(单个字符)“”双引号用于界定字符串常量(字符串)
y和n 是单引号,最后要把他们整体扩起来双引号