@santiago666/

Pocket Money Adder

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
intWeekNo = 0
fltPocketMoney = 0.100
fltTotalMoney =11000
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")