Skip to content

Commit fc397c2

Browse files
authoredAug 12, 2016
Merge pull request #2 from kriti-wadhwa/master
Create solutions_to_assignmnt.txt
2 parents ee9c6e4 + 5ba9b01 commit fc397c2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
 

‎solutions_to_assignmnt.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
1. Solution to problem 1
2+
3+
P=int(input("Principal Amount?"))
4+
r=int(input("Nominal rate?"))
5+
n=int(input("Compounding freq?"))
6+
t=int(input("No. of years?"))
7+
print("Amount is: ", P * ((1+r/n) ** (n*t)))
8+
9+
2. Solution to problem 2
10+
11+
12+
W=int(input("Enter the width ?"))
13+
H=int(input("Enter the height ?"))
14+
print("The area of the rectangle is : " , W*H)
15+
16+
17+
3 Solution to problem 3
18+
19+
def convert(a):
20+
return (1.8*a)+32
21+
c=float(input("Enter the temp"))
22+
print(convert(c))

0 commit comments

Comments
 (0)
Please sign in to comment.