知识点:
循环控制:循环控制
#include <iostream> using namespace std; int main() { string bless = "Happy new year!Good luck!"; int n; cin >> n; for (int i = 0; i < n; i++) { cout << bless << endl; } return 0; }
知识点:
循环控制:循环控制
#include <iostream> using namespace std; int main() { string bless = "Happy new year!Good luck!"; int n; cin >> n; for (int i = 0; i < n; i++) { cout << bless << endl; } return 0; }