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
Introduction To Programming In Java An Interdisciplinary Approach
ISBN: 9780672337840
2nd Edition
Authors: Robert Sedgewick, Kevin Wayne
Question Posted: