這是哪里錯(cuò)了啊 求大神指點(diǎn)
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷(xiāo)售業(yè)績(jī)?yōu)?20萬(wàn)
? ? int year=1; //剛剛進(jìn)入公司1年
? ? if(sale>100)
? ? {
? ? ? ? if(year>=2)
? ? ? ? { ? ?
? ? ? ? ? ? printf("%s\n","優(yōu)秀員工");
? ? ? ? }
? ? ? ? ? ? printf("%s\n","跟遺憾,期望你再接再厲");
? ? }//完善代碼
? ? ?else
? ? ?{ ??
? ? ? ? ? ? printf("%s\n","很遺憾,期望你再接再厲");
? ??
? ? ?}?
? ? return 0;
}
2016-11-12
?printf("%s\n","跟遺憾,期望你再接再厲");? //這句打錯(cuò)字了,改為?printf("%s\n","很遺憾,期望你再接再厲");
2016-10-10
我的哪里錯(cuò)了
2016-10-10
這個(gè)題 就是錯(cuò)的 ?正確答案是這樣
#include <stdio.h>
int main()?
{
? ? int sale=120;?
? ? int year=1;
? ?if (sale>100)
? ? {
? ? ? ? if (year>=2)
? ? ? ? {
? ? ? ? ? ? printf("%s\n","很遺憾,期望你再接再厲");
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ? printf("%s\n","恭喜你,獲得優(yōu)秀員工獎(jiǎng)!");
? ? ? ? }
? ? }
? ? else
? ? {
? ? ? ? printf("%s\n","很遺憾,期望你再接再厲"); ??
? ? }
? ? return 0;
}