Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string input = Console.ReadLine();
- while (input != "End")
- {
- string destination = input;
- double budget = double.Parse(Console.ReadLine());
- double money = 0;
- while (money < budget)
- {
- money += double.Parse(Console.ReadLine());
- }
- Console.WriteLine($"Going to {destination}!");
- input = Console.ReadLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement