想知道錯在哪里?謝謝你
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業績為120萬
? ? int year=1; //剛剛進入公司1年
? ? //完善代碼
? ? if(sale>100)
? ? {
? ? ? ? if(year>=2)
? ? ? ? {
? ? ? ? ? ? printf("恭喜你獲得優秀員工獎");
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ? printf("很遺憾,期望你再接再厲");
? ? ? ? }
? ? }
? ? else
? ? {
? ? ? ? print("很遺憾,期望你再接再厲");
? ? }
? ? return 0;
}
2020-03-26
19行因該是printf少了一個“f”
2020-03-26
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業績為120萬
? ? int year=1; //剛剛進入公司1年
? ? //完善代碼
? ? if(sale>100)
? ? {
? ? ? ? if(year>=2)
? ? ? ? {
? ? ? ? ? ? printf("恭喜你獲得優秀員工獎");
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ? printf("很遺憾,期望你再接再厲");
? ? ? ? }
? ? }
? ? else
? ? {
? ? ? ? printf("很遺憾,期望你再接再厲");
? ? }
? ? return 0;
}