Skip to content

Latest commit

 

History

History
25 lines (25 loc) · 402 Bytes

13. Unit 1 - Lesson 13.md

File metadata and controls

25 lines (25 loc) · 402 Bytes

Practice Programs - Operators

Q1.

a=int(input("kg: "))
b=2.2*a
print("lb:",b)

Q2.

a=float(input("temp in celsius: "))
b=1.8*a+32.0
print("temp in fahrenheit is",b)

Q3.

a=int(input("a: "))
b=int(input("b: "))
print(a,"+",b,"=",a+b)
print(a,"-",b,"=",a-b)
print(a,"*",b,"=",a*b)
print(a,"/",b,"=",a/b)
print(a,"**",b,"=",a**b)
print(a,"%",b,"=",a%b)
print(a,"//",b,"=",a//b)