Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

PROGRAMS

Class 1:
1.WAP to print Hello World
print(“Hello World”)

2.WAP implements Airthematic operators.


a=int(input(“Enter first number”))
b=int(input(“Enter second number”))
print(“Addition”,a+b)
print(“Subtract”, a-b)
print(“Divide float”, a/b)
print(“Divide integer value”, a//b)
print(“Modulo”, a/b)
print(“Exponent”, a**b)

3.WAP implements Bitwise operators.


a=int(input(“Enter first number”))
b=int(input(“Enter second number”))
print(“Addition”,a&b)
print(“Subtract”, a|b)
print(“Divide float”, a<<b)
print(“Divide integer value”, a>>b)
print(“Modulo”, a^b)
print(“Exponent”, ~b)

You might also like