Similarly to the hello exercise, you should write a program that prints “Hello, World!” on the standard output device. This time however, you must first read from the standard input how many times the message should be printed.
Input consists of a single line containing an integer n indicating how many times the hello message should be printed.
1 ≤ n ≤ 1000
The output should contain n lines
each containing Hello, World!
exactly.
1
Hello, World!
3
Hello, World!
Hello, World!
Hello, World!
try first: fibonacci1
try next: total countdown1
Copyright © 2020-2021 Rudy Matela
This text is available under the CC BY-SA 4.0 license.
Originally available on cscx.org/hello2