Advertisement
spasnikolov131

Untitled

May 12th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Fuel_Tank
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. string fuel = Console.ReadLine().ToLower();
  10. int liters = int.Parse(Console.ReadLine());
  11.  
  12. if (liters >= 25)
  13. {
  14. Console.WriteLine($"You have enough {fuel}.");
  15. }
  16. else if (liters < 25)
  17. {
  18. Console.WriteLine($"Fill your tank with {fuel}!");
  19. }
  20. else
  21. {
  22. Console.WriteLine("Invalid fuel!");
  23. }
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement