C# Basics: Activity 5 - Control Stuctures

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		int currentHour = 0; // current hour between 0 - 23

		if(/*boolean statement A*/)
		{
			Console.WriteLine("Good Morning");
		} 
		else if (/*boolean statement B*/)
		{
			Console.WriteLine("Good Afternoon");
		}
		  else
		{
			Console.WriteLine("Good Night");
		}
}
;