C Primer Plus 第四章第二題

2. Write a program that requests your first name and does the following with it.
a. Prints it enclosed in double quotation marks.
b. Print it in a field 20 characters wide, with the whole field in quote.
c. Prints it at the left end of a field 20 characters wide, with the whole field enclosed in quotes
d. Prints it in a field three characters wider than the name.

Posted in 碎碎念

Leave a Reply

Your email address will not be published.