donmike25 icon

ecp1016 tutorial 3(2)

donmike25 | PRO | 06/27/13 01:20:27 PM UTC | 0 ⭐ | 260 👁️ | Never ⏰ | []
C |

240 B

|

None

|

0 👍

/

0 👎

#include <stdio.h>
 
int main()
{
 
    char x;
    printf("Enter a character\n");
    scanf("%c",&x);
 
if (x == 'a'|| x == 'e' || x == 'i' || x == 'o' || x == 'u')
    printf("%c is a vowel\n",x);
else
    printf("%c is not a vowel\n",x);
 
return 0;
}

Comments