Program 1. Write Python program to find sum of two numbers.
a = int ( input ( " Enter first number : "))
b = int ( input ( " Enter second number : " ) )
s = a + b
print ( " Sum of two numbers is " , s )
Program 2. Python program to find product of two numbers
a=int ( input (" Enter first number : " ) )
b=int (input ("Enter second number: "))
p=a*b
print( " Product of two numbers is : " , p)
Program 3. Write Python program to find average of two numbers.
a=int(input(" Enter first number :"))
b=int(input(" Enter second number : "))
s=(a+b)/2
print(" Average of two numbers is",s)
Program 4. Python program to find print x raise power to y
x = int ( input (" Enter value of x : " ) )
y = int (input ("Enter value of y : "))
ans=x ** y
print( " x raise to power y is : " , ans)
Program 5. Write Python program to find simple interest.
p=float(input(" Enter principal :"))
t=float(input(" Enter time :"))
r=float(input(" Enter rate :"))
si=(p*t*r)/100
print(" Simple Interst is",si)