Wednesday, May 16, 2012

if else statement: Descending Order

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

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


Sample input: Enter the numbers: 1 2 3
Sample Output: The descending order is : 3, 2, 1


Solve:




















We can also do this program by the following way:




















Thank you all..:)

0 comments:

Post a Comment