K&R Exercises

Exercise 1-12: One word per line

Write a program that prints its input one word per line.

A word is any sequence of characters that does not contain a blank, tab or newline. Print each word followed by a newline, with no empty lines.

Test Cases

· space→ tab↵ newline

Submissions

No submissions yet