1003 C語言輸入以某個特殊輸入爲結束標誌

輸入不說明有多少個Input Block,但以某個特殊輸入爲結束標誌。     C語法: while(scanf("%d",&n) && n!=0 ) {     .... } C++語法: while( cin >> n && n != 0 ) {     .... }   #include <stdio.h> int main(){ int a,b; while(sca
相關文章
相關標籤/搜索