Scratch Repeat Hello
0.5s 256MIn Scratch, you can ask the user to enter \(n\), store the answer in a variable named n, and then put an action inside a "repeat n times" block to make the computer do the same thing again and again.
The Scratch program below is executable. It reads n, and then says Hello, AACPSCHOOL! exactly n times.
Please implement the same behavior in C++: read \(n\), and then print Hello, AACPSCHOOL! on \(n\) lines.
Input
The input contains one line with an integer \(n\).
Constraints
- \(1 \le n \le 100\)
Output
Print \(n\) lines.
Each line must be exactly Hello, AACPSCHOOL!. The uppercase and lowercase letters, punctuation marks, and the space after the comma must all match.
Sample Input 1
3
Sample Output 1
Hello, AACPSCHOOL!
Hello, AACPSCHOOL!
Hello, AACPSCHOOL!
Sample Input 2
1
Sample Output 2
Hello, AACPSCHOOL!
Sample Input 3
5
Sample Output 3
Hello, AACPSCHOOL!
Hello, AACPSCHOOL!
Hello, AACPSCHOOL!
Hello, AACPSCHOOL!
Hello, AACPSCHOOL!
Log in to write and submit code. Creating an account is free.