Write a program that reads one line of text and then prints


1. Write a program that reads one line of text and then prints it with all its blanks removed.

2. Write a program that reads one line of text and then prints the number of words that were read.

3. Write a program that reads one line of text and then prints the same words in reverse order.

For example, the input
today is Tuesday
would produce the output
Tuesday is today

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program that reads one line of text and then prints
Reference No:- TGS01186305

Now Priced at $15 (50% Discount)

Recommended (93%)

Rated (4.5/5)