Leaderboard
Showing:
The New Line
Easy Accuracy: 54.02% Submissions: 31586 Points: 2

You are familiar with producing output using C++/C. In this task, you'll be required to write three messages in three separate lines. Write Geeks for Geeks. But wait a minute!! You need to write each word of it in a separate line.

 

Example 1:

Input:
No Input
Output:
Geeks
for
Geeks
Explanation: First word of the statment
is in first line, next word is in next
line, and last is in last line.

 

Your Task:

In the function printInNewLine(), output each word of Geeks for Geeks in a separate line.

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.

The New Line

Output Window