index | submit | rank | book

hello2 – Hello World! II

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 and Output

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.

Example input 1

1

Example output 1

Hello, World!

Example input 2

3

Example output 2

Hello, World!
Hello, World!
Hello, World!

Scoring

try first: fibonacci1

try next: total countdown1

index | submit | rank | book

Copyright © 2020-2021 Rudy Matela
All rights reserved