forked from sarjus/C-Programing-KTU
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExp2_19_sarju_s.c
More file actions
31 lines (30 loc) · 795 Bytes
/
Exp2_19_sarju_s.c
File metadata and controls
31 lines (30 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/******************************************************
* File : Experiment 2.1
* Description : Write a C Program to check Whether a Character is Vowel or Consonant
* Author : Sarju S
* Version : 1.0
* Date : 08/06/2021
* ***************************************************/
#include<stdio.h>
int main(){
char ch;
printf("Enter the character:");
scanf("%c",&ch);
switch(ch){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
case 'U':
printf("The given characeter is Vowel");
break;
default:
printf("The given characeter is Consonant");
}
return 0;
}