You are on page 1of 2

Experiment No.

Aim: Write a program to develop a simple calculator.


Objective:
● To develop a simple calculator.
Outcome: Students will be able to develop a simple calculator.

Algorithm\Implementation Steps\Installation Steps:


1. Read the value of a and b.
2. Print the choices.
3. Read the choice as n.
4. if (n>0) and(n<5)
If n==1
Print the sum of a and b.
eliIf n==2
Print the difference of a and b.
elif n==3
Print the product of a and b.
else
Print the quotient of a divided by b.
5. else
Print Invalid choice.
Source Code:

Input and Output:

Conclusion: Thus, the Python program to develop a simple calculator is executed


successfully and the output is verified.

You might also like