Monday, June 25, 2012

Switch Case: Add, Subtract, Multiply, Divide

Assalamu alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn how to add/ subtract/ multiply/ divide two numbers. Let's look at the problem.

Problem: Write a program that takes two integer value from the user. Then asked the user what he/she wants to do(Add/ Subtract/ Multiply/ Divide/Modulus). Then show the result according to the given choice.


Solution:


Thank you all..:)

0 comments:

Post a Comment