大神們請問哪錯了
#include?<stdio.h>int?main()?{???????????int?height?=?185;????//補全所有代碼??if(height>=180)????{??printf(恭喜小明能選上籃球隊");????????}????{??else?printf("小明不能被選上籃球隊");????} return?0;}
#include?<stdio.h>int?main()?{???????????int?height?=?185;????//補全所有代碼??if(height>=180)????{??printf(恭喜小明能選上籃球隊");????????}????{??else?printf("小明不能被選上籃球隊");????} return?0;}
2018-11-27
舉報
2018-12-14
恭喜前沒引號
2018-11-27
if語句后面的else是放在{}外面的,{}里面放的是執行語句
#include?<stdio.h>
int?main()?{ ?
int?height?=?185;????//補全所有代碼 ?
if(height>=180) ??
?{??printf(恭喜小明能選上籃球隊");????????} ? ?
else
{? printf("小明不能被選上籃球隊"); ??
?}?
?return?0;}