這樣行不行?????
#include <stdio.h>
int main()
{
? ? int moneyone=12;
? ? float moneytwo=11.5;
? ??
? ? printf("小編能不能打車回家呢:");
? ? printf("%c\n",moneyone>=moneytwo ? 'y':'x');
? ??
? ? return 0;
}
#include <stdio.h>
int main()
{
? ? int moneyone=12;
? ? float moneytwo=11.5;
? ??
? ? printf("小編能不能打車回家呢:");
? ? printf("%c\n",moneyone>=moneytwo ? 'y':'x');
? ??
? ? return 0;
}
2020-11-19
舉報(bào)
2020-11-30
要包含money=12
2020-11-30
#include <stdio.h>
int main()
{
? ? int money1=12;
? ? float money2=11.5;
? ??
? ? printf("小編能不能打車回家呢:");
? ? printf("%c\n",money1>=money2 ? 'y':'x');
? ??
? ? return 0;
}
2020-11-20
可以,變量名只是區(qū)分,只是不要寫(xiě)的太長(zhǎng)。