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