Friday, June 1, 2012

Subtraction the Minimum from the Maximum

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to subtract the minimum number from maximum number. Let's look at the problem.

Problem: Write a program that takes two integer numbers and output the subtraction result from maximum to minimum.

Sample Input: Enter Two Numbers: 10 5
Sample Output: Result: 5

Solve:


















We can also do this code by following way:


















Thank You all..:)

0 comments:

Post a Comment