1.
Write a program to print the addition of two number
a = int(input(“enter first number”))
b = int(input(“enter second number”))
sum=a+b
print (sum)
Output:
Page number-01
2.Write a program to find greater number in two numbers.
a = int(input(“enter first number”))
b = int(input(“enter second number”))
if(a>b):
print(a,”is greater”)
else:
print(b,”is greater)
Output:
Page number-02
3.Write a program to print even or odd number.
num = int(input(“ente a number:”))
if (num%2)==0:
print(“the number is even”)
else:
print(“the number is odd”)
Output:
Page number-03
4.Write a program to show the marks of all the students and find that student
I’d pass or fail
eng=int(input(“enter marks of english :”))
hindi=int(input(“enter marks of hindi :”))
maths=int(input(“enter marks of maths :”))
science=int(input(“enter marks of science :”))
sst=int(input(“enter marks of sst :”))
ai=int(input(“enter marks of ai :”))
marks=(eng+hindi+maths+science+sst+ai)/6
if marks>50.
print(“pass”)
else:
print(“fail”)
Output:
Page number-04
5.Write a program to print area of triangle.
h=int(input(“enter the value of height:”))
b=int(input(“enter the value of base:”))
a=1/2*b*h
print(“area if the given triangle is:”,a)
Output:
Page number-05
6.Write a program to print area of rectangle.
l=int(input(“length in cm”))
b=int(input(“breadth in cm”))
a=l*b
print(“your area rectangle is:”,a)
Output:
Page number-06
7.Write a program to print area of circle.
r=int(input(“enter your radius”))
a=3.14*(r*r)
print(“your area is:”,a)
Output:
Page number-07
8.Write a program to print simple interest.
P=int(input(“enter the principal amount:”))
T=int(input(“enter the time period:”))
R=int(input(“enter the rate of interest:”))
Si=(p*t*r)/100
Print(“the simple interest is”,Si)
Output:
Page number-08
9. Write a program to print compound interest.
p = int(input("Enter the princple amount"))
r = int(input("Enter the rate intrest per annum"))
t = int(input("Enter the time in years"))
ci=p*(pow((1+r/100)t))
print (ci)
Output:
Page number-09
10.Write a program to print area of square?
a=int(input("enter length in cm"))
x=a*a
print("your area of is:”,x)
Output:
Page number-10
11.Wap to print the multiplication table?
a=int(input("show the multiplication table of?"))
for i in range (1,11):
print(a,"x",i,"=",a*i)
Output:
Page number-11