0% found this document useful (0 votes)
41 views1 page

Python Input Operations Example

This Python code takes numerical input from the user for 12 different variables, performs a mathematical operation on variables 1-2, 3-4, 5-6, 7-8, 9-10, 11-12, and prints the results. It adds the first two numbers, subtracts the third from the fourth, multiplies the fifth by the sixth, divides the seventh by the eighth, raises the ninth to the power of the tenth, and takes the modulus of the eleventh and twelfth.

Uploaded by

allyssajaydtan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views1 page

Python Input Operations Example

This Python code takes numerical input from the user for 12 different variables, performs a mathematical operation on variables 1-2, 3-4, 5-6, 7-8, 9-10, 11-12, and prints the results. It adds the first two numbers, subtracts the third from the fourth, multiplies the fifth by the sixth, divides the seventh by the eighth, raises the ninth to the power of the tenth, and takes the modulus of the eleventh and twelfth.

Uploaded by

allyssajaydtan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Program  RUN CODE  Reset

1 a=int(input ("first number"))


2 b=int(input("second number"))
3
4 print (a+b)
5 c=int(input ("third number"))
6 d=int(input ("fourth number"))
7
8 print(c-d)
9 e=int(input ("fifth number"))
10 f=int(input ("sixth number"))
11 print (e*f)
12 g=int(input ("seventh number"))
13 h=int(input("eighth number"))
14 print (g/h)
15 i=int(input("nineth number"))
16 j = int(input("tenth number"))
17 print (i**j)
18 l=int(input("eveleventh number"))
19 n=int(input("twelveth
3 number"))
-1
20 print (l%n) 30
21 0
22 3486784401

You might also like