Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Travelling
- {
- class Program
- {
- static void Main(string[] args)
- {
- string destination = Console.ReadLine();
- while (destination != "End")
- {
- double amount = double.Parse(Console.ReadLine());
- while (amount > 0)
- {
- amount -= double.Parse(Console.ReadLine());;
- }
- Console.WriteLine($"Going to {destination}!");
- destination = Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement