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 degrees = int.Parse(Console.ReadLine());
- string time = Console.ReadLine();
- string outfit = "Shirt";
- string shoes = "Moccasins";
- if (degrees >= 10 && degrees <= 18 && time == "Morning")
- {
- outfit = "Sweatshirt";
- shoes = "Sneakers";
- }
- else if (degrees > 18 && degrees <= 24 && time == "Afternoon" || degrees > 24 && time == "Morning")
- {
- outfit = "T-Shirt";
- shoes = "Sandals";
- }
- else if (degrees > 24 && time == "Afternoon")
- {
- outfit = "Swim Suit";
- shoes = "Barefoot";
- }
- Console.WriteLine($"It's {degrees} degrees, get your {outfit} and {shoes}.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement