Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TextWindow.Title="Savings Calculator"
- YourName = ""
- Deposit = 0
- Months = 0
- Total = 0
- TextWindow.WriteLine("Hello, what is your name?")
- YourName = TextWindow.Read()
- TextWindow.Clear()
- TextWindow.WriteLine("How much will you deposit each month?")
- Deposit = TextWindow.ReadNumber()
- TextWindow.Clear()
- TextWindow.WriteLine("For how many months?")
- Months = TextWindow.ReadNumber()
- TextWindow.Clear()
- Total = Deposit * Months
- TextWindow.WriteLine(yourName + ", after " + months +" months, you will have $" + total + " in your savings.")
Advertisement
Add Comment
Please, Sign In to add comment