@santiago666/

Pocket Money Adder-1

Python 2.7

No description

fork
loading
Files
  • main.py
  • intWeekNo = 10000 fltPocketMoney = 0.100 fltTotalMoney =1 0001000 totalMoney = 1000 name = input("Welcome. Please enter your name") for intWeekNo in range(1,26): intWeekNo = int(intWeekNo) + 1 print("\nIt is week ",intWeekNo) fltPocketMoney = float(fltPocketMoney) * 2 print("You will get BD",fltPocketMoney, name) totalMoney = float(totalMoney) + float(fltPocketMoney) print("You now have", totalMoney, "pounds",name) input("\ nPress ENTER to exit program")
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
intWeekNo = 10000
fltPocketMoney = 0.100
fltTotalMoney =1 0001000
totalMoney = 1000

name = input("Welcome. Please enter your name")
for intWeekNo in range(1,26):
    intWeekNo = int(intWeekNo) + 1
    print("\nIt is week ",intWeekNo)
    fltPocketMoney = float(fltPocketMoney) * 2
    print("You will get BD",fltPocketMoney, name)
    totalMoney = float(totalMoney) + float(fltPocketMoney)

print("You now have", totalMoney, "pounds",name)
input("\
nPress ENTER to exit program")