Write a program that right-justifies text it should read


Write a program that right-justifies text. It should read and echo a sequence of left-justified lines and then print them in right-justified format.

For example, the input
Listen, my children, and you shall hear Of the midnight ride of Paul Revere,
On the eighteenth of April, in Seventy-five; Hardly a man is now alive
Who remembers that famous day and year.
would be printed as
Listen, my children, and you shall hear Of the midnight ride of Paul Revere,
On the eighteenth of April, in Seventy-five;
Hardly a man is now alive Who remembers that famous day and year.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program that right-justifies text it should read
Reference No:- TGS01186278

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)