Monday, March 3, 2008

Assignment 2

Assignment A2: Control Loop Statements (Duration: 2 practical periods)

Write a program in C that reads any five digit number and displays the number in two parts diagonally as shown in the user interface screen as in the figure below.


The number displayed is separated into two parts beginning with the rightmost unit digit. The process continues until the leftmost digit is reached.

You must construct a pseudocode or flowchart before writing the program.

No comments: