Problem
Given a sentence, S, print each word of the sentence in a new line.
Input Format
The first and only line contains a sentence, S.
Constraints
- 1<=len(s)<=1000
Output Format
Print each word of the sentence in a new line.
Sample Input 0
This is C
Sample Output 0
This is C
Explanation 0
In the given string, there are three words [“This”, “is”, “C”]. We have to print each of these words in a new line.
Sample Input 1
Learning C is fun
Sample Output 1
Learning C is fun
Sample Input 2
How is that
Sample Output 2
How is that
Printing Tokens in C – Hacker Rank Solution
Tags:
hackerrank c solutions | Functions Discussions | C | HackerRank | student analysis C hackerrank solution | challenges C hackerrank solution | hackerrank C basic certification solutions | hackerrank-C certification solutions | basic data types hackerrank solution in c | variable sized arrays hackerrank solution in c | inherited code hackerrank solution in c | hackerrank c solutions github | hackerrank data structures solutions in c | hackerrank c class solution | pointer hackerrank solution in c | box it hackerrank solution in c
ConversionConversion EmoticonEmoticon