Advertisement
MladenKarachanov

Summer Outfit

Apr 9th, 2025
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.27 KB | None | 0 0
  1. int degrees = int.Parse(Console.ReadLine());
  2. string time = Console.ReadLine();
  3.  
  4. string Outfit = "";
  5. string Shoes = "";
  6. if (degrees >= 10 && degrees <= 18)
  7. {
  8.     if (time == "Morning")
  9.     {
  10.         Outfit = "Sweatshirt";
  11.         Shoes = "Sneakers";
  12.     }
  13.     else if (time == "Afternoon")
  14.     {
  15.         Outfit = "Shirt";
  16.         Shoes = "Moccasins";
  17.     }
  18.  
  19.     else if (time == "Evening")
  20.     {
  21.         Outfit = "Shirt";
  22.         Shoes = "Moccasins";
  23.     }
  24. }
  25. else if (degrees > 18 && degrees <= 24)
  26.  
  27.     if (time == "Morning")
  28.     {
  29.         Outfit = "Shirt";
  30.         Shoes = "Moccasins";
  31.     }
  32.     else if (time == "Afternoon")
  33.     {
  34.         Outfit = "T-Shirt";
  35.         Shoes = "Sandals";
  36.     }
  37.  
  38.     else if (time == "Evening")
  39.     {
  40.         Outfit = "Shirt";
  41.         Shoes = "Moccasins";
  42.     }
  43.  
  44.      else if (degrees >= 25)
  45.  
  46.       if (time == "Morning")
  47.     {
  48.         Outfit = "T-Shirt";
  49.         Shoes = "Sandals";
  50.     }
  51.     else if (time == "Afternoon")
  52.     {
  53.         Outfit = "Swim Suit";
  54.         Shoes = "Barefoot";
  55.     }
  56.  
  57.     else if (time == "Evening")
  58.     {
  59.         Outfit = "Shirt";
  60.         Shoes = "Moccasins";
  61.     }
  62.  
  63.  
  64.     Console.WriteLine($"It's {degrees} degrees, get your {Outfit} and {Shoes}.");
  65.  
  66. //Не е решена
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement