WAP to identify the given character is vowel or not using if statement.


Comments

  1. #include
    void main()
    {
    char ch;
    printf("enter an alphabets");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||'i'||ch=='o'||ch=='u')
    {
    printf("given character is ovwal");
    }
    }

    ReplyDelete
  2. #include
    void main ()
    {
    char ch;
    printf("enter an alphabet\n");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("%c given alphabet is vowel",ch);
    }
    if(ch!='a'||ch!='e'||ch!='i'||ch!='o'||ch!='u')
    {
    printf("%c given alphabet is not vowel",ch);
    }

    }

    ReplyDelete
  3. #include
    void main ()
    {
    char ch;
    printf("enter an alphabet\n");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("given alphabet is vowel");

    }
    else
    printf("given alphabet is NOT a vowel");
    }

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. #include
    void main()
    {
    char ch;
    printf("enter an alphabet");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("given character is ovwal");
    }
    }

    ReplyDelete
  6. #include
    void main()
    {
    char ch;
    printf("enter an alphabet");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("given character is vowel");
    }
    else
    {
    printf("given character is not vowel");
    }
    }

    ReplyDelete
  7. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }






    ReplyDelete
  8. #include
    void main ()
    {
    char ch;
    printf("enter the alphabet ");
    scanf("%c",&ch);
    if (ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("given character is vowel");
    }

    }

    ReplyDelete
  9. #include
    void main()
    {
    char ch;
    printf("enter an alphabet");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("Given character is vowel");
    }
    else
    {
    printf("given character is not vowel");
    }
    }

    ReplyDelete
  10. #include
    void main ()
    {
    char ch;
    printf("enter an alphabet\n");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("%c given alphabet is vowel",ch);
    }
    else
    {
    printf("%c given alphabet is not vowel",ch);
    }
    }

    ReplyDelete
  11. #include
    void main()
    {
    char c;
    printf("enter a charecter value");
    scanf("%c",&c);
    if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u'))
    {
    printf("the entered charachter %c is an vowel",c);
    }
    else
    {
    printf("the entered character %c is a consonant",c);
    }
    }

    ReplyDelete
  12. #include
    void main()
    {
    char ch;
    printf("enter an alphabet");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf(" entered alphabet is vowel");

    }
    else
    {
    printf("given alphabet is not vowel");
    }

    }

    ReplyDelete
  13. #include
    void main()
    {
    char c;
    printf("enter a charecter value");
    scanf("%c",&c);
    if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u'))
    {
    printf("the entered charachter %c is an vowel",c);
    }
    else
    {
    printf("the entered character %c is a consonant",c);
    }
    }

    ReplyDelete
  14. #include
    void main ()
    {
    char ch;
    printf("enter an alphabet\n");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("given alphabet is vowel");

    }
    else
    printf("given alphabet is NOT a vowel");
    }

    ReplyDelete
  15. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  16. #include
    void main()
    {
    char ch;
    printf("enter an alphabets");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||'i'||ch=='o'||ch=='u')
    {
    printf("given character is ovwal");
    }
    }

    ReplyDelete
  17. #include
    void main()
    {
    char c;
    printf("enter a charecter value");
    scanf("%c",&c);
    if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u'))
    {
    printf("the entered charachter %c is an vowel",c);
    }
    else
    {
    printf("the entered character %c is a consonant",c);
    }
    }

    ReplyDelete
  18. #include
    void main()
    {
    char c;
    printf("enter a charecter value");
    scanf("%c",&c);
    if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u'))
    {
    printf("the entered charachter %c is an vowel",c);
    }
    else
    {
    printf("the entered character %c is a consonant",c);
    }
    }

    ReplyDelete
  19. #include
    void main()
    {
    float a,b,c,d,e,p;
    printf("enter marks obtained out of 100 in five subjects");
    scanf("%f %f %f %f %f",&a, &b, &c, &d, &e);
    p=(a+b+c+d+e)/500*100;
    if(p<40)
    {
    printf("\tcandidate is fail\n");
    }
    else if(p>=40&&p<=49.99)
    {
    printf("\tcandidate is pass class\n");
    }
    else if(p>=50&&p<=59.99)
    {
    printf("\tcandidate is second class\n");
    }
    else if(p>=60&&p<=66.65)
    {
    printf("\tcandidate is first class\n");
    }
    else
    {
    printf("\tcandidate is first class with distinction\n");
    }
    }

    ReplyDelete
  20. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  21. This comment has been removed by the author.

    ReplyDelete
  22. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  23. #include
    void main()
    {
    char ch;
    printf("enter an alphabets");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||'i'||ch=='o'||ch=='u')
    {
    printf("given character is ovwal");
    }
    }

    ReplyDelete
  24. #include
    void main()
    {
    float a,b,c,d,e,p;
    printf(" marks of 5 subjets");
    scanf("%f %f %f %f %f",&a,&b,&c,&d,&e);
    p=(a+b+c+d+e)/500*100;
    if(p<40.00)
    {
    printf("\n student is failed");
    }
    if(p>=40.00&&p<=49.99)
    {
    printf("\n pas class");
    }
    if(p>=50.00&&p<=59.99)
    {
    printf("\n second class");
    }
    if(p>=60.00&&p<=66.65)
    {
    printf("\n first class");
    }
    if(p>=66.66)
    {
    printf("\n first class with dist");
    }
    }

    ReplyDelete
  25. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }
    Reply

    ReplyDelete
  26. #include
    void main()
    {
    char ch;
    printf("enter a char");
    scanf("%c",&ch);
    if(ch=='a'||ch=='i'||ch=='e'||ch=='o'||ch=='u')
    {
    printf("entered charecter is vowel");
    }
    else
    {
    printf("entered charecter is consonent");
    }
    }

    ReplyDelete
  27. #include
    void main()
    {
    char b;
    printf(" Enter a character ");
    scanf("%c",b);
    if(b=='a'|| b=='i'|| b=='o'|| b=='u'|| b=='e')
    {
    printf("Your Character is VOWEL\n");
    }
    else
    {
    printf("Your Characater is CONSONANT\n");
    }
    }

    ReplyDelete
  28. #include
    void main ()
    {
    char ch;
    printf("enter an alphabet\n");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("%c given alphabet is vowel",ch);
    }
    if(ch!='a'||ch!='e'||ch!='i'||ch!='o'||ch!='u')
    {
    printf("%c given alphabet is not vowel",ch);
    }

    }

    ReplyDelete
  29. #include
    void main()
    {
    char A;
    printf("Enter a character");
    scanf("%c",&A);
    if(A=='a'||A=='e'||A=='i'||A=='o'||A=='u')
    {
    printf("Entered character is vowel");
    }
    else
    {
    printf("Entered character is consonant");
    }
    }

    ReplyDelete
  30. This comment has been removed by the author.

    ReplyDelete
  31. #include
    void main()
    {
    char A;
    printf("Enter a character");
    scanf("%c",&A);
    if(A=='a'||A=='e'||A=='i'||A=='o'||A=='u')
    {
    printf("Entered character is vowel");
    }
    else
    {
    printf("Entered character is consonant");
    }
    }

    ReplyDelete
  32. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  33. #include
    void main()
    {
    char A;
    printf("Enter a character");
    scanf("%c",&A);
    if(A=='a'||A=='e'||A=='i'||A=='o'||A=='u')
    {
    printf("Entered character is vowel");
    }
    else
    {
    printf("Entered character is consonant");
    }
    }

    ReplyDelete
  34. #include
    void main()
    {
    char A;
    printf("Enter a character");
    scanf("%c",&A);
    if(A=='a'||A=='e'||A=='i'||A=='o'||A=='u')
    {
    printf("Entered character is vowel");
    }
    else
    {
    printf("Entered character is consonant");
    }
    }

    ReplyDelete
  35. #include
    void main()
    {
    char ch;
    printf("Enter the character");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("Enter character is vowel");
    }
    else
    {
    printf("Enter character is consonent");
    }
    }

    ReplyDelete
  36. #include
    void main()
    {
    char c;
    printf("enter a charecter value");
    scanf("%c",&c);
    if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u'))
    {
    printf("the entered charachter %c is an vowel",c);
    }
    else
    {
    printf("the entered character %c is a consonant",c);
    }
    }

    ReplyDelete
  37. #include
    void main()
    {
    char c;
    printf("enter a charecter value");
    scanf("%c",&c);
    if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u'))
    {
    printf("the entered charachter %c is an vowel",c);
    }
    else
    {
    printf("the entered character %c is a consonant",c);
    }
    }

    ReplyDelete
  38. #include
    void main()
    {
    char c;
    printf("enter a charecter value");
    scanf("%c",&c);
    if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u'))
    {
    printf("the entered charachter %c is an vowel",c);
    }
    else
    {
    printf("the entered character %c is a consonant",c);
    }
    }

    ReplyDelete
  39. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  40. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  41. #include
    void main()
    {
    char ch;
    printf("enter an alphabets");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||'i'||ch=='o'||ch=='u')
    {
    printf("given character is ovwal");
    }

    ReplyDelete
  42. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  43. #include
    void main()
    {
    char A;
    printf("Enter a character");
    scanf("%c",&A);
    if(A=='a'||A=='e'||A=='i'||A=='o'||A=='u')
    {
    printf("Entered character is vowel");
    }
    else
    {
    printf("Entered character is consonant");
    }
    }

    ReplyDelete
  44. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  45. Anonymous6:41 PM

    #include
    void main()
    {
    char c;
    printf("enter a charecter value");
    scanf("%c",&c);
    if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u'))
    {
    printf("the entered charachter %c is an vowel",c);
    }
    else
    {
    printf("the entered character %c is a consonant",c);
    }
    }

    ReplyDelete
  46. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  47. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  48. #include
    void main()
    {
    char ch;
    printf("enter a charater=");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("entered charater %c is vowel",ch);
    }
    else
    {
    printf("enterd charater %c is not a vowel",ch);
    }
    }

    ReplyDelete
  49. #include
    void main()
    {
    char ch;
    printf("enter charector");
    scanf("%c",&ch);
    if(ch=='a'||ch=='i'||ch=='e'||ch=='o'||ch=='u')
    {
    printf("charector is wovel");
    }
    else
    {
    printf("charector is not wovel");
    }
    }

    ReplyDelete
  50. #include
    void main()
    {
    char ch;
    printf("enter charector");
    scanf("%c",&ch);
    if(ch=='a'||ch=='i'||ch=='e'||ch=='o'||ch=='u')
    {
    printf("charector is wovel");
    }
    else
    {
    printf("charector is not wovel");
    }
    }

    ReplyDelete
  51. #include
    void main()
    {
    char ch;
    printf("enter charector");
    scanf("%c",&ch);
    if(ch=='a'||ch=='i'||ch=='e'||ch=='o'||ch=='u')
    {
    printf("charector is wovel");
    }
    else
    {
    printf("charector is not wovel");
    }
    }

    ReplyDelete
  52. #include
    void main()
    {
    char ch;
    printf("enter charector");
    scanf("%c",&ch);
    if(ch=='a'||ch=='i'||ch=='e'||ch=='o'||ch=='u')
    {
    printf("charector is wovel");
    }
    else
    {
    printf("charector is not wovel");
    }
    }

    ReplyDelete
  53. #include
    void main()
    {
    char ch;
    printf("enter charector");
    scanf("%c",&ch);
    if(ch=='a'||ch=='i'||ch=='e'||ch=='o'||ch=='u')
    {
    printf("charector is wovel");
    }
    else
    {
    printf("charector is not wovel");
    }
    }

    ReplyDelete
  54. #include
    void main()
    {
    char ch;
    printf("enter charector");
    scanf("%c",&ch);
    if(ch=='a'||ch=='i'||ch=='e'||ch=='o'||ch=='u')
    {
    printf("charector is wovel");
    }
    else
    {
    printf("charector is not wovel");
    }
    }

    ReplyDelete
  55. #include
    void main()
    {
    char ch;
    printf("enter charector");
    scanf("%c",&ch);
    if(ch=='a'||ch=='i'||ch=='e'||ch=='o'||ch=='u')
    {
    printf("charector is wovel");
    }
    else
    {
    printf("charector is not wovel");
    }
    }

    ReplyDelete
  56. #include
    void main ()
    {
    char ch;
    printf("enter an alphabet\n");
    scanf("%c",&ch);
    if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
    {
    printf("given alphabet is vowel");

    }
    else
    printf("given alphabet is NOT a vowel");
    }

    ReplyDelete

Post a Comment