C Primer Plus 第四章第五題

5. Write a program that request the user’s first name and then the user’s last name. Have it print the entered names on one line and the number of letters in each name on the following line. align each letter count with the end of the correspomding name, as in the following:

   Melissa Honeybee
         7        8

Next have it print the same information, but with the count aligned with the beginning of each name.

   Melissa Honeybee
   7       8

Posted in 碎碎念

Leave a Reply

Your email address will not be published.