Arithmetic Calculator In Python || Python Program || Arithmetic Operators In Python

Pubblicato il: 07 febbraio 2023
sul canale di: Aim Computer Academy
34
3

In this video we have explain the Arithmetic Calculator

Code
#Arithmetic Calculator
ch='y'
while(ch=='y' or ch=='Y'):
print("Enter two numbers : ")
n1=int(input())
n2=int(input())
print("1-Addition")
print("2-Subtraction")
print("3-Multiplication")
print("4-Division")
print("5-Modulus")
print("Enter your choice : ")
choice=int(input())
if choice==1:
print("Addition : ",n1+n2)
elif choice==2:
print("Subtraction : ",n1-n2)
elif choice==3:
print("Multiplication : ",n1*n2)
elif choice==4:
print("Division : ",n1/n2)
elif choice==5:
print("Modulus : ",n1%n2)
else:
print("Invalid Entry")
print("Would you like to run the program again(Y/N)")
ch=input()


Please subscribe our YouTube channel and click on bell Icon.

Follow us on Instagram :   / aimcomputeracademydigboi  
Join our Facebook group :   / 536687250112679  
Like our Facebook page :   / aim-ambition-in-mind-147598225929076  
#python #python3 #pythonforbeginners #pythontutorial


In questa pagina del sito puoi guardare il video online Arithmetic Calculator In Python || Python Program || Arithmetic Operators In Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Aim Computer Academy 07 febbraio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 34 volte e gli è piaciuto 3 spettatori. Buona visione!