Question: Write a console application for the following (Assignment inspired by: Source) Ordinals. Write a program that takes a command line argument N and prints out

Write a console application for the following (Assignment inspired by: Source) Ordinals. Write a program that takes a command line argument N and prints out the first N ordinals, followed by Hello % C++ Ordinals 22 1st Hello 2nd Hello 3rd Hello 4th Hello 5th Hello 10th Hello 11th Hello 12th Hello 13th Hello . 20th Hello 21st Hello 22nd Hello Hint consider using (i % 10) and (i % 100)to determine when to use "st", "nd", "rd", or "th" for printing the ith Hello
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
