Question: 2 9 . 6 LAB: Output numbers in reverse Write a program that reads a list of integers, one per line, until an * is

29.6 LAB: Output numbers in reverse
Write a program that reads a list of integers, one per line, until an * is read, then outputs those integers in reverse. For simplicity in coding output, follow each integer, including the last one, by a comma.
Note: Use a while loop to output the integers. DO NOT use reverse() or reversed().
Ex: If the input is:
the output is:
10,8,6,4,2,
544634.4042094.qx3zqy7
2 9 . 6 LAB: Output numbers in reverse Write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!