Rewrite TenHellos to make a program Hellos that takes the number of lines to print as a

Question:

Rewrite TenHellos to make a program Hellos that takes the number of lines to print as a command-line argument. You may assume that the argument is less than 1000. Use i % 10 and i % 100 to determine when to use st, nd, rd, or th for printing the ith Hello.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: