File tree 3 files changed +18
-0
lines changed
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ print ("First Python Program!" )
Original file line number Diff line number Diff line change
1
+ print ('Interest Calculator:' )
2
+ amount = float (input ('Principal amount ?' ))
3
+ roi = float (input ('Rate of Interest ?' ))
4
+ years = int (input ('Duration (no. of years) ?' ))
5
+ total = (amount * pow (1 + (roi / 100 ), years ))
6
+ interest = total - amount
7
+ print ('\n Interest = %0.2f' % interest )
Original file line number Diff line number Diff line change
1
+ A room will be painted
2
+ The room has no windows, no door
3
+ Only the walls and ceiling will be painted, not the floor.
4
+
5
+ Write a Python program to:
6
+ Ask the user for the room's width
7
+ Ask the user for the room's height
8
+ Ask the user for the room's length
9
+ Ask the user for the coverage in squared meters, of a liter of paint.
10
+ The program will output how much paint is needed to paint the room.
You can’t perform that action at this time.
0 commit comments