online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to blackNwhite. Question:- Write a C program to check an alphabet is vowel or consonant. *******************************************************************************/ #include <stdio.h> int main() { char ch; // Ask the user to enter a character printf("Enter a character: "); scanf(" %c", &ch); // Check if the entered character is a vowel or a consonant if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' || ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U') { printf("%c is a vowel.\n", ch); } else if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) { printf("%c is a consonant.\n", ch); } else { printf("%c is not a valid alphabet.\n", ch); } return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue