• Breaking News

    Funny Coder

    Funny coder is an open source web for interested programmer. It is a programming environment.It's a way where you can code with fun.

    Friday, April 22, 2016

    Check the letter is vowel or not C program



    Check the letter is vowel or not C program


    /*
    Name   : C source program
    Author : Funny Coder(Maniruzzman Akash)
    It's a free code. You can use it anywhere
    */

    #include <stdio.h>
    int main(){
      char alph;
      printf("\nEnter an alphabet: ");
      scanf("%c",&alph);
      if(alph == 'a' || alph == 'A' || alph == 'e' || alph == 'E' || alph == 'i' || alph =='I'|| alph == 'o' || alph == 'O' || alph == 'u'|| alph == 'U')
           printf("\n%c is a vowel.\n",alph);
      else
           printf("\n%c is a not a vowel..It's a consonant.\n",alph);
      return 0;
    }

    Output:

    Check the letter is vowel or not C program  run

    Check the letter is vowel or not C program  run









    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel