Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //variable for the choice that the user will make on fuel type
  2. int choice;
  3. do
  4. {
  5. //ask the user to select their required fuel
  6. Console.WriteLine("Please Pick The Number Of Your Fuel:");
  7. //choices that the user can make
  8. Console.WriteLine(" 1. Four Star Petrol");
  9. Console.WriteLine(" 2. Unleaded Petrol");
  10. Console.WriteLine(" 3. Diesel");
  11. choice = Convert.ToInt32(Console.ReadLine());
  12. }
  13. while ((choice < 3) && (choice > 0));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement