Computer Orignal Phase 1
Computer Orignal Phase 1
print("******************************************")
# Write a program that accepts radius of a circle and prints its area.
r=int(input('Enter the radius of circle:'))
Area=3.14*r**2
print('The area of the circle is:', Area)
print("******************************************")
# Write a program that accepts base and height and calculate the area of triangle
b= oat(input('Enter the base of triangle:'))
h= oat(input('Enter the height of triangle:'))
Area=(1/2)*b*h
print('The area of triangle is:', Area)
print("******************************************")
print("******************************************")
print("******************************************")
print("******************************************")
# Write a program to read two numbers and prints their quotient and reminder
a= oat(input('Enter the dividend:'))
fl
fl
fl
fl
fl
fl
fl
fl
fl
fl
fi
fi
b= oat(input('Enter the divisor:'))
Q=a//b
R=a%b
print('The quotient is:', Q)
print('The remainder is:', R)
print("******************************************")
print("******************************************")
print("******************************************")
print("******************************************")
print("******************************************")
fl
fl
fl
fi
fi
fi
fi
fi
fi
# Write a program that accepts weight in Kg
# and height in meters and calculate the BMI.
W = oat(input('Enter the weight in Kg:'))
H = oat(input('Enter height in meters:'))
BMI=W/(H**2)
print('BMI is:', BMI)
print("******************************************")
# Write a program that reads the number n # and print the value of n2, n3 and n4.
a= oat(input('Enter the value of n:'))
b=a**2
c=a**3
d=a**4
print('The value of n2 is:', b)
print('The value of n3 is:', c)
print('The value of n4 is:', d)
print("******************************************")
print("******************************************")
print("******************************************")
print("******************************************")
print("******************************************")
print("******************************************")
print("******************************************")