CODES
CODES
OUTPUT
The sum of given two number is 70
CODE 2
# sum of any two number with user-inputs
OUTPUT
num = 64
sr = num**(1/2)
print ("the square root of the given number is",sr)
OUTPUT
area = l*b
OUTPUT
num1 = 12
num2 = 56
num3 = 34
OUTPUT
num1= 20
num2 = 48
result = num2 – num1
print (result)
OUTPUT
result is 28
CODE 7
# to find square of number 9
n=9
print("square of n is:",n**2)
OUTPUT
Square of 9 is: 81
CODE 8
# to input a number and display whether it is even or odd
OUTPUT
enter a number: 31
31 is ODD
CODE 9
# to find the average of two numbers
OUTPUT
OUTPUT