"PROGRAM NO.
-1
Write a program to input two numbers and add
the values .
a=int(input(""Enter the First Number:""))
b=int(input(""Enter the First Number:""))
c=(a+b)
print(""The Total of Two Numbers :"", c)
"PROGRAM NO.-2
Write a program to calculate Simple Interest.
(Hint: SI=P*R*T/100).
p=int(input('The principal is', p))
t=int(input('The time period is', t))
r=int(input('The rate of interest is',r))
si = (p * t * r)/100
print('The Simple Interest is', si)
"PROGRAM NO.-3
Write a program to input five subject marks and
calculate its Total, Average and find
result( Pass / Fail) .
English = int (input ( ""Enter English Mark:""))
Lang= int (input (""Enter Lang Mark:""))
Maths = int (input (""Enter Maths Mark:""))
Science = int (input (""Enter Science Mark:""))
Social = int (input (""Enter Social Mark:""))
total =English+ Lang + Maths + Science + Social
average = total / 5.0
if average >= 40:
print(""Result:Pass"")
else:
print(""Result:Fail"")
print (""\nThe Total marks is: \t"", total)
print (""\nThe Average marks is: \t"", average)
"PROGRAM NO.-4
Write a program to find whether the person
is eligible to vote or not.
Age=int(input(""Enter your Age:""))
if ( Age > = 18):
print(""Eligible to Vote"")
else:
print(""Not Eligible to vote"")
"PROGRAM NO.-5
Write a program to input a character and find the
given character is upper,lower,digit or
special character.
Ch = input(""Enter any character : "")
if Ch>='A' and Ch<='Z':
print("" character is uppercase letter"")
elif Ch>='a' and Ch<='z':
print("" character is Lower letter"")
elif Ch>='0' and Ch<='9':
print("" character is digit "")
else:
print("" character is a special character "")