Advertisement
spasnikolov131

Untitled

Jul 12th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Summer_Outfit
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int degrees = int.Parse(Console.ReadLine());
  10. string timeOfDay = Console.ReadLine();
  11. string outfit = "";
  12. string shoes = "";
  13.  
  14. if (degrees >= 10 && degrees <= 18)
  15. {
  16. if (timeOfDay == "Morning")
  17. outfit = "Sweatshirt";
  18. shoes = "Sneakers";
  19. }
  20. else if (timeOfDay == "Afternoon" || timeOfDay == "Evening")
  21. {
  22. outfit = "Shirt";
  23. shoes = "Moccasins";
  24. }
  25. if (degrees > 18 && degrees <= 24)
  26. {
  27. if (timeOfDay == "Morning" || timeOfDay == "Evening")
  28. {
  29. outfit = "Shirt";
  30. shoes = "Moccasins";
  31. }
  32. }
  33. else if (timeOfDay == "Afternoon")
  34. {
  35. outfit = "T-shirt";
  36. shoes = "Sandals";
  37. }
  38. if (degrees >= 25)
  39. {
  40. if (timeOfDay == "Morning")
  41. outfit = "T-shirt";
  42. shoes = "Sandals";
  43. }
  44. else if (timeOfDay == "Afternoon")
  45. {
  46. outfit = "Swim Suit";
  47. shoes = "Barefoot";
  48. }
  49. else if (timeOfDay == "Evening")
  50. {
  51. outfit = "Shirt";
  52. shoes = "Moccasins";
  53. }
  54. Console.WriteLine($"It's {degrees} degrees, get your {outfit} and {shoes}.");
  55. }
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement