From 6cf6b595c34a59839404558b85ed31fa77588f7e Mon Sep 17 00:00:00 2001 From: shalu1207 <115417063+shalu1207@users.noreply.github.com> Date: Sun, 9 Oct 2022 21:44:19 +0530 Subject: [PATCH] Create vowCons.c --- vowCons.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 vowCons.c diff --git a/vowCons.c b/vowCons.c new file mode 100644 index 0000000..3daf367 --- /dev/null +++ b/vowCons.c @@ -0,0 +1,14 @@ +#include +int main() +{ + char ch; + printf("enter the character:"); + scanf("%c",ch); + if (ch=='a'|| ch=='e'|| ch=='i'|| ch=='o'|| ch=='u'||ch=='A'|| ch=='E'|| ch=='I'|| ch=='O'|| ch=='U') + printf(" %c is vowel",ch); + else if(ch>='a' && ch<= 'z'|| ch>='A' && ch<='Z') + printf(" %c is consonent",ch); + else + printf("invalid"); + return 0; +}