if with a block statements

CSharp · Console

/Program.cs

using System;

public class Program
{
	public static void Main()
	{
		int number = 8; // Change 8 to 6
		if (number > 7)
		{
			Console.WriteLine("8 is greater than 7");
			Console.WriteLine("Condition is true");
		}
	}
}
;