0
1.7kviews
Write a program to implement calculator with following operations:-

(i) Add two numbers

(ii) Subtract two numbers

(iii) Division two numbers

(iv) Multiply two numbers.

1 Answer
0
10views

Algorithm:

  • Start.
  • Declare option, n1, n2, sub, mul, div and add.
  • Promote the user to enter two numbers.
  • Accept the number as a and b.
  • Print the menu and promote the user for option.
  • Accept the option as option.
  • Switch (option)

    • If option == 1 do the following.

      • Add = …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.