while ( A.條件式) { B.當條件成立時,就重覆做的事. ... int i; cin >> n; i = 1; while( i <= n ) { cout << "No." << i << endl; i = i+1; } return 0; }. 流程圖 ...
確定! 回上一頁