Advertisement
Guest User

Untitled

a guest
Dec 26th, 2019
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Summer_Outfit
  4. {
  5. class Program
  6. {
  7. static void Main()
  8. {
  9. double temperatura = double.Parse(Console.ReadLine());
  10. string timeOfDay = Console.ReadLine();
  11. string shoes = "";
  12. string outfit = "";
  13.  
  14. if (temperatura <= 18 && temperatura >= 10)
  15. {
  16. if (timeOfDay == "Morning")
  17. {
  18. outfit = "Sweatshirt";
  19. shoes = "Sneakers";
  20. }
  21. else if (timeOfDay == "Afternoon")
  22. {
  23. outfit = "Moccasinus";
  24. shoes = "Shirt";
  25. }
  26. else if (timeOfDay == "Afternoon" || timeOfDay == "Evening")
  27. {
  28. outfit = "T-Shirt";
  29. shoes = "Sandals";
  30. }
  31. else if (timeOfDay == "Evening")
  32. {
  33. outfit = "Moccasinus";
  34. shoes = "Shirt";
  35.  
  36. }
  37. }
  38. Console.WriteLine($"It's {temperatura} degrees, get your {outfit} and {shoes}.");
  39.  
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement