Given the normal Console in C#, the task is to check if the CAPS LOCK is on or off through Console.
Approach: This can be done using the
CAPS LOCK property in the
Console class of the System package in C#.
Program 1: When the CAPS LOCK is on
Output:
👁 Image
Program 2: When the CAPS LOCK is off