Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DomashnoSummerOutfit
- {
- class Program
- {
- static void Main(string[] args)
- {
- // get input --> int degrees, string "Morning", "Afternoon", "Evening"
- int degrees = int.Parse(Console.ReadLine());
- string timeOfDay = Console.ReadLine().ToLower();
- // deside which to wear, according to degrees
- string outfit = "0";
- string shoes = "0";
- if (degrees <= 18)
- {
- switch (timeOfDay)
- {
- case "morning":
- outfit = "Sweatshirt";
- shoes = "Sneakers";
- break;
- case "afternoon":
- outfit = "Shirt";
- shoes = "Moccasins";
- break;
- case "evening":
- outfit = "Shirt";
- shoes = "Moccasins";
- break;
- }
- }
- else if (degrees <= 24)
- {
- switch (timeOfDay)
- {
- case "morning":
- outfit = "Shirt";
- shoes = "Moccasins";
- break;
- case "afternoon":
- outfit = "T-Shirt";
- shoes = "Sandals";
- break;
- case "evening":
- outfit = "Shirt";
- shoes = "Moccasins";
- break;
- }
- }
- else if (degrees >= 25)
- {
- switch (timeOfDay)
- {
- case "morning":
- outfit = "T-Shirt";
- shoes = "Sandals";
- break;
- case "afternoon":
- outfit = "Swim Suit";
- shoes = "Barefoot";
- break;
- case "evening":
- outfit = "Shirt";
- shoes = "Moccasins";
- break;
- }
- }
- // print "It's {градуси} degrees, get your {облекло} and {обувки}."
- Console.WriteLine($"It's {degrees} degrees, get your {outfit} and {shoes}.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement