print("hello world")
n1=int(input("enter first number"))
n2=int(input("enter second number"))
add=n1+n2
sub=n1-n2
mul=n1*n2
div=n1/n2
print("addition is",add)
print("substraction is",sub)
print("multiplication is",mul)
print("division is",div)
n1=int(input("enter first number"))
n2=int(input("enter second number"))
n3=int(input("enter third number"))
avg=n1+n2+n3/3
print("average of three numbers are",avg)
n1=int(input("enter first number"))
sq=n1*n1
cube=n1*n1*n1
print("square of a number",sq)
print("cube of a number",cube)
eng=int(input("enter english marks"))
hin=int(input("enter hindi marks"))
math=int(input("enter maths marks"))
sci=int(input("enter science marks"))
sst=int(input("enter sst marks"))
total=eng+hin+math+sci+sst
per=total/5
print("total marks of subjects",total)
print("percentage",per)
r=int(input("enter radius of a circle"))
area=22/7*r*r
cir=2*22/7*r
print("area of circle",area)
print("circumference of circle",cir)
a=int(input("enter first number"))
b=int(input("enter second number"))
x=a
a=b
b=x
print("value of a",a)
print("value of b",b)
a=int(input("enter first number"))
b=int(input("enter second number"))
a=a+b
b=a-b
a=a-b
print("value of a",a)
print("value of b",b)
sec=int(input("enter time in sec"))
h=sec//3600
a=sec%3600
m=a//60
s=a%60
print(h,"hours",m,"minute",s,"seconds")
cur=int(input("enter currency"))
r1=int(cur/100)
r2=cur%100
print(r1,"rupees",r2,"paisa")
a=int(input("enter side of a square"))
area=a*a
print("area of a sqaure",area)
l=int(input("enter length of a rectangle"))
b=int(input("enter breadth of a rectangle"))
area=l*b
print("area of a rectangle",area)
a=int(input("enter value of a"))
b=int(input("enter value of b"))
c=a*a+b*b+2*a*b
print("answer is",c)
n=int(input("enter a number"))
n1=n+1
n2=n1+1
n3=n2+1
print("next three numbers are",n1,n2,n3)
n=int(input("enter a number"))
n1=n-1
n2=n1-1
n3=n2-1
print("next three numbers are",n1,n2,n3)
sal=int(input("enter sales"))
gst=sal*18/100
print("18% gst on sales is",gst)
ms=int(input("enter monthly salary"))
b=ms*12
it=b*12/100
print("annual salary after 12% income tax",it)
f=int(input("enter cost of one fan"))
d=f*12
gst=d*12/100
cost=d+gst
print("cost of one dozon fan after 12% gst",cost)
no=int(input("Enter a number"))
if no>0:
print("Positive Number")
else:
print("Negative Number")
a=int(input<"Enter a number"))
b=int(input("Enter b number"))
if a>b:
print("Largest Number is :",a)
else:
print("Largest Number is :",b)
a=int(input<"Enter a number"))
b=int(input("Enter b number"))
if a< b:
print("Largest Number is :",a)
print("Squre is :",a*a)
else:
print("Largest Number is :",b)
print("Squre is :",b*b)
age=int(input("Enter your Age :"))
if age>=18:
print("User can vote")
else:
print("User can't vote")
ms=int(input("Enter your monthlyb salary :"))
ys=ms*12
print("Yearly salary is ",ys)
if ys>200000:
tax=ys*10/100
print("Tax is ",tax)
else:
tax=ys*8/100
print("Tax is ",tax)
eng=int(input("enter english marks"))
hin=int(input("enter hindi marks"))
math=int(input("enter maths marks"))
sci=int(input("enter science marks"))
sst=int(input("enter sst marks"))
total=eng+hin+math+sci+sst
print("total marks of subjects",total)
per=total/5
print("percentage",per)
if per>60:
print("Result is Pass ")
else:
print("Result is Fail ")
no=int(input("Enter a Number :"))
if no%2==0:
print("Even")
else:
print("Odd")
year=int(input("Enter a year :"))
if year%4==0:
print("Leap Year")
else:
print("Not Leap Year")
age=int(input("Enter your age :"))
if age>60:
print("Senior Citizen")
else:
print("Not a Senior Citizen")
no=int(input("Enter a Number :"))
if no%10==7 or no%7==0:
print("Buzz Number")
else:
print("Not Buzz Number")
chr=input("Enter a Character :")
if chr in "AEIOUaeiou":
print("Vowel")
else:
print("Consonent")
sal=int(input("Enter your sales"))
if sal>200000:
tax=sal*5/100
print("Tax is ",tax)
else:
print("No Tax")
a=int(input("Enter a Number"))
b=int(input("Enter b Number"))
c=int(input("Enter c Number"))
if a>b and a>c:
print("Largest Number is ",a)
elif b>a and b>c:
print("Largest Number is ",b)
else:
print("Largest Number is ",c)
a=int(input("Enter a Number"))
b=int(input("Enter b Number"))
c=int(input("Enter c Number"))
if a< b and a< c:
print("Largest Number is ",a)
elif b< a and b< c:
print("Largest Number is ",b)
else:
print("Largest Number is ",c)
per=int(input("Enter your Percentage :"))
if per>0 and per<=32:
print("Fail")
elif per>=33 and per<=44:
print("Third")
elif per>=45 and per<=59:
print("Second")
elif per>=60 and per<=74:
print("First")
elif per>=75 and per<=100:
print("Honours")
else:
print("Wrong percentage")
unit=int(input("Enter your Unit :"))
if unit>0 and unit<=100:
bill=unit*6
print("Bill is ",bill)
elif unit>=101 and unit<=200:
bill=unit*6.25
print("Bill is ",bill)
elif unit>=201 is unit<=400:
bill=unit=6.5
print("Bill is ",bill)
else:
bill=unit*7
print("Bill is ",bill)
sal=int(input("Enter your Salary"))
if sal>0 and sal<=500000:
print("Tax is 0%")
elif sal>=500000 and sal<=1500000:
tax=sal*10/100
print("Tax is ",tax)
elif sal>=1500000 and sal<=2500000:
tax=sal*12.5/100
print("Tax is ",tax)
elif sal>2500000 and sal<=3500000:
tax=sal*15/100
print("Tax is ",tax)
elif sal>3500000 and sal<=4500000:
tax=sal*20/100
print("Tax is ",tax)
else:
tax=sal*30/100
print("Tax is ",tax)
call=int(input("Enter your calls"))
if call>0 and call<=100:
bill=call*2
print("Bill is ",bill)
elif call>=101 and call<=200:
bill=call*1.5
print("Bill is ",bill)
elif call>=201 and call<=300:
bill=call*1
print("Bill is ",bill)
else:
bill=call*0.50
print("Bill is ",bill)
days=int(input("Enter your working days"))
if days>0 and days<=100:
print("salary is =",days*500)
elif days>=101 and days<=200:
print("salary is ",days*1000)
elif days>=201 and days<=300:
print("salary is ",days*1500)
elif days>=301 and days<=365:
print("salary is ",days*2000)
else:
print("Wrong Input")
a=int(input("Enter 1 Number :"))
b=int(input("Enter 2 Number :"))
print("1. Addition")
print("2. Substraction")
print("3. Multiplication")
print("4. Division")
ch=int(input("Enter your choice"))
if ch==1:
print(a+b)
elif ch==2:
print(a-b)
elif ch==3:
print(a*b)
if ch==4:
print(a/b)
gen=input("Enter Your Gender :")
age=int(input("Enter your age :))
if gen=="M" or gen=="m"
if age<60:
print("20% discount")
else:
print("30% discount")
elif gen=="F" or gen=="f"
if age<60:
print("15% discount")
else:
print("25% discount")
a=int(input("Enter a number :"))
b=int(input("Enter b number :"))
c=int(input("Enter c number :"))
if a < c:
if a < b:
print("Smallest number a ",a)
else:
print("Smallest number b ",b)
elif b < c:
print("Smallest number b ",b)
else:
print("Smallest number c ",c)
mt=input("Enter meter type :")
unit=int(input("Enter unit :"))
if mt=="D" or mt=="d":
if unit<200:
print((unit*3)+100)
else:
print((unit*4.5)+200)
elif mt=="C" or mt=="c":
if unit<200:
print((unit*5)+400)
else:
print((unit*7)+600)
gen=input("Enetr gender :")
age=int(input("Enter your age :"))
ticket=int(input("Enter ticket amount "))
if gen=="M" or gen=="m":
if age<60:
print(ticket-(ticket*10)/100)
else:
print(ticket-(ticket*25)/100)
elif gen=="F" or gen=="f":
if age<60:
print(ticket-(ticket*20)/100)
else:
print(ticket-(ticket*40)/100)
else:
print("Wrong input")