Wednesday, May 16, 2012

if else statement: Ascending Order

Hello Guys!!! Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to find out the ascending order of three integer numbers. Let's look at the problem:

Problem: Write a program that takes three integer numbers and output the numbers in ascending order. (small to large).

Sample Input: Enter the Numbers: 1 2 3
Sample Output: The ascending order is: 1, 2, 3

Solve:




















We can also do this program by the following way:





















Thank you all..:)

0 comments:

Post a Comment