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