Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var age = int.Parse(Console.ReadLine());
- var washingMachinePrice = double.Parse(Console.ReadLine());
- var presentPrice = int.Parse(Console.ReadLine());
- var savings = 0;
- var moneyFromPresents = 0;
- var bonus = 10;
- for (int i = 1; i <= age; i++)
- {
- if (i % 2 == 0)
- {
- savings += bonus;
- savings -= 1;
- bonus += 10;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement