Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SummerOutfit
- {
- class Program
- {
- static void Main(string[] args)
- {
- int gradus = int.Parse(Console.ReadLine());
- string time = Console.ReadLine();
- string outfit = "";
- string shoes = "";
- switch (time)
- {
- case "Morning":
- if (gradus <= 18)
- { outfit = "Sweatshirt"; shoes = "Sneakers"; }
- else if (gradus <= 24)
- { outfit = "Shirt"; shoes = "Moccasins"; }
- else
- { outfit = "T-Shirt"; shoes = "Sandals"; }
- break;
- case "Afternoon":
- if (gradus <= 18)
- { outfit = "Shirt"; shoes = "Moccasins"; }
- else if (gradus <= 24)
- { outfit = "T-Shirt"; shoes = "Sandals"; }
- else
- { outfit = "Swim Suit"; shoes = "Barefoot"; }
- break;
- case "Evening":
- outfit = "Shirt";
- shoes = "Moccasins";
- break;
- }
- Console.WriteLine($"It's {gradus} degrees, get your {outfit} and {shoes}.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement