1 usingSystem;2 usingSystem.Collections.Generic;3 usingSystem.Linq;4 usingSystem.Text;5 6 namespaceConsoleApplication17 {8 classClass19 {Ten Static voidMain (string[] arge) One { AConsole.Write ("What time is the old wolf old Wolf? "); - strings =console.readline (); - inthour =Convert.ToInt32 (s); the - if(Hour >=0&& Hour <6) - { -Console.WriteLine ("early morning"+hour+"Point."); + } - Else if(Hour >=6&& Hour <= A) + { AConsole.WriteLine ("Morning"+hour+"Point."); at } - Else if(Hour > A&& Hour <= -) - { -hour-= A; -Console.WriteLine ("Afternoon"+hour+"Point."); - in } - Else if(Hour > -&& Hour < -) to { +hour-= A; -Console.WriteLine ("Night"+ Hour +"Point."); the } * Else $ {Panax NotoginsengConsole.WriteLine ("the wrong time is entered"); - } the + A the } + } -}
Job 1. What time is the old wolf? Wee, morning, afternoon, evening.