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