Given the normal Console in C#, the task is to change the WindowHeight of the Console.
Approach: This can be done using the
WindowHeight property in the
Console class of the System package in C#. The
WindowHeight refers to the height of the console window measured in rows.
Program 1: Getting the value of WindowHeight
Output:
👁 Image
Program 2: Setting the value of WindowHeight