Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //variable for the choice that the user will make on fuel type
- int choice;
- do
- {
- //ask the user to select their required fuel
- Console.WriteLine("Please Pick The Number Of Your Fuel:");
- //choices that the user can make
- Console.WriteLine(" 1. Four Star Petrol");
- Console.WriteLine(" 2. Unleaded Petrol");
- Console.WriteLine(" 3. Diesel");
- choice = Convert.ToInt32(Console.ReadLine());
- }
- while ((choice < 3) && (choice > 0));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement