還是不行,不知道有啥問題
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業(yè)績?yōu)?20萬
? ? int year=1; //剛剛進入公司1年
? ? //完善代碼
? ? if(sale>100)
? ? {
? ? ? ?if(year>=2)
? ? ? ?{
? ? ? ? ? ? printf("%s\n","恭喜小明獲得資格");
? ? ? ?}
? ? ? ?else
? ? ? ?{
? ? ? ? ? ?printf("%s\n","再接再厲");
? ? ? ?}
? ? }
? else
? ? {
? ? ? ? printf("%s\n","再接再厲");
? ? }
? ??
? ? return 0;
? ??
? ??
}? ??
? ??
? ??
2018-12-29
你寫的;與,
2018-12-28
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業(yè)績?yōu)?20萬
? ? int year=1; //剛剛進入公司1年
? ? //完善代碼
? ?if(year>=2){
? ? ? ?if(sale>100){
? ? ? ? ? ?printf("%s\n", "獲得獎勵");
? ? ? ?}
? ? ? ?else{
? ? ? ? ? ?printf("%s\n", "很遺憾,期望你再接再厲");
? ? ? ?}
? ?}
? ?else{
? ? ? ?printf("%s\n", "很遺憾,期望你再接再厲");
? ?}
? ??
? ??
? ??
? ? return 0;
}
2018-12-28
你的語法沒問題啊,但是我看著標點符號好像用的不對哦,要用英文的標點