Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

completed basic tasks #69

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Create README.md and completed task1
  • Loading branch information
nandu888 authored Jun 20, 2024
commit f9d9e2306d24028cf5e5431cce8dc9bd719ff479
30 changes: 30 additions & 0 deletions ch_nandu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#a simple python program to perform basic tasks like addition,subtraction,multiplication,division
print('please select any of the number for performing arithmetic operations')
print("1.Addition")
print('2.Subtraction')
print('3.Multiplication')
print('4.Division')
print('5.exit')
a=int(input('Enter any of the number for performing arithmetic operations'))
def ari(a,var1,var2):
a,var1,var2=a,var1,var2
if(a==1):
print(var1+var2)
if(a==2):
print(var1-var2)
if(a==3):
print(var1*var2)
if(a==4):
print(var1/var2)
return

#Enter Two numbers
if((a>0) and (a<5)):
var1 = int(input('Enter First number: '))
var2 = int(input('Enter Second number: '))
ari(a,var1,var2)
elif(a==5):
exit()
else:
print('Invalid Option')
print('please select 1/2/3/4/5 only')