WAP to accept a character from the keyboard and check the character is vowel or not. - Computer Times

Latest

Sunday, 2 September 2018

WAP to accept a character from the keyboard and check the character is vowel or not.

















Write a program to accept a character and cheack the character is vowel or not in c language.

//----------- VOWEL PERSENT OR NOT ---------

#include<stdio.h>
#include<conio.h>
            void main()
            {
                 char ch;
                 clrscr();
                 printf(" ENTER THE CHARACTER ::");
                 scanf("%c",&ch);
                 if(ch=='a' && ch=='A' || ch=='i' && ch=='I' || ch=='e'                      && ch=='E' || ch=='O' && ch=='o'|| ch=='U'&& ch=='u')
                   {
                        printf(" VOWEL IS PRESENT");
                   }
                        else
                   {
                         printf(" THIS IS NOT VOWEL");
                   }
              getch();
            }

Computer Coaching in Jalandhar with Dinesh Sir,C,C++,Java Language, Computer Science CBSE,ICSC,State Board.

https://digitaljalandhar.in/c-language-jalandhar/


CLanguageCoachinginjalandhar

#C++LanguageCoachinginjalandhar

#JavaLanguageCoachinginjalandhar

#ComputerScienceCoachinginjalandhar

Best Digital Marketing Jalandhar

Website Design Jalandhar

SEO SERVICES IN JALANDHAR

SMO Services Jalandhar

Maths Coaching Jalandhar

Digital Jalandhar, Online Coaching,Website Development,SEO and SMO Services


No comments:

Post a Comment