Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1f8f429

Browse files
Create calci.py
1 parent a26052d commit 1f8f429

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎R.LOKESH/task1/calci.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
print("SIMPLE CALCULATOR")
2+
A,B=map(int,input("enter space separated numbers:\n").split())
3+
operator=input("enter the operation you want to perform:")
4+
if operator=="+":
5+
print('addition of {} and {} is {}'.format(A,B,A+B))
6+
elif operator=="-":
7+
print('Subractin of {} and {} is {}'.format(A,B,A-B))
8+
if operator=="*":
9+
print('Multiplication of {} and {} is {}'.format(A,B,A*B))
10+
if operator=="/":
11+
print('Division of {} and {} is {}'.format(A,B,A/B))
12+
if operator=="%":
13+
print('Remainder of {} and {} is {}'.format(A,B,A%B))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /