K&R Exercises

Exercise 1-9: Squeeze runs of blanks

Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank.

A blank is the space character. Copy tabs and other characters unchanged.

Test Cases

· space→ tab↵ newline

Submissions

No submissions yet