求教:拋開具體要求不說,這么寫代碼的話是不是更加簡潔?
求教:拋開具體要求不說,這么寫代碼的話是不是更加簡潔?
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業(yè)績?yōu)?20萬
? ? int year=1; //剛剛進(jìn)入公司1年
? ? //完善代碼
? ? if (sale>=100&&year>=2)
? ? {
? ? printf("恭喜你")
? ? }
? ? else
? ? {
? ? printf("很遺憾,期望你再接再厲")
? ? }
? ? return 0;
}
2017-11-22
是簡單了點(diǎn),不過你的printf后忘了加;
2017-11-22
嗯嗯嗯