This is basic python program for all beginners in python programming language. It simply takes two integer numbers and performs arithmetic operations like addition, subtraction, multiplication, division, floor division, modulus and exponential(power) on them.
To perform arithmetic operations on two integers.
Approach :
Read two input integers using input() or raw_input().
Addition operation using + operator, num1 + num2 adds 2 numbers.
Subtraction operation using - operator, num1 - num2 right hand operand from left hand operand.
Multiplication operation using * operator, num1 * num2 multiplies 2 numbers.
Division operation using / operator, num1 / num2 divides left hand operand by right hand operand.
Floor Division operation using // operator, num1 // num2 divides left hand operand by right hand operand, here it removes the values after decimal point.
Modulus % operator when applied returns the remainder when left hand operand is divided by right hand operand num1 % num2.
Exponential operation using ** operator, num1 ** num2 returns value of num1 num2
Print the result of each operation.
Sur cette page du site, vous pouvez voir la vidéo en ligne Airthmatic Operator in python(hindi) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Saloyat 06 juillet 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 11 fois et il a aimé 0 téléspectateurs. Bon visionnage!