Sunday 2 April 2017

Algorithm to Create a Menu-driven Calculator



Step 1 : Start
Step 2 : Read Choice
Step 3 : Read Numbers Num1 and Num2
Step 4 : if Choice = 1 then Print a + b
             if Choice = 2 then Print  a - b
             if Choice = 3 then Print  a * b
             if Choice = 4 then Print  a / b
             if Choice = 5 then Print  a % b
             else Print wrong choice     
Step 5 : Stop 

No comments:

Post a Comment

How to Invert an SVG image using CSS ?

You can invert your svg easily by using following css code svg { -webkit-filter: invert(100%); /* safari 6.0 - 9.0 */ filter...