#55439: c++解答


yp11451009@yphs.tp.edu.tw (711-19王敬皓)


c++

 

#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;              // 宣告整數 n,代表要輸出的次數

    cin >> n;           // 輸入 n

    while(n--){         // 重複執行 n 次,每次執行後 n 減 1
        cout << "I don't say swear words!\n";  // 輸出指定文字
    }

    return 0;           // 程式正常結束
}