File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ answer to question 1
2
+ #to calucate the compound interest
3
+ pri = 10000# principal amount
4
+ compfr = 12#compound frequncy
5
+ roi = 0.08#rate of interest
6
+ time = input("for how much time u want to find the compound interest on principal ?")
7
+ time = float(time)
8
+ A = pri*((1+roi/compfr)**(time*compfr))
9
+ A = float(A)
10
+ print (A)
11
+
12
+ ANSWER TO QUESTION 2
13
+
14
+ # TO Calculate theare of the rectangle
15
+ height = input("enter the value of height?")
16
+ width = input ("enter the value of width?")
17
+ height = float(height)
18
+ width = float(width)
19
+ area = height*width# find the area of the rectangle
20
+ if area <=50:
21
+ print ("the area of rectangle ",area,"that area is sooooooooo small")
22
+ elif area >=50 and area<=200:
23
+ print ("the area of rectangle",area,"that area is ooook")
24
+ else:
25
+ print ("the area of rectangle",area,"OMG")
26
+
27
+ ANSWER TO QUESTION 3
28
+ #to convert celsuis to fahrenheit
29
+ cel = input ("enter the value in celsuis ?")
30
+ cel = float(cel)
31
+ far = 32+(cel)*(9.0/5.0)
32
+ print (far)#print the value
You can’t perform that action at this time.
0 commit comments