2
Answers

need help in (getchar) and (for)

sami sam

sami sam

12y
1.1k
1
include <stdio.h>
#include <string.h>
char c;
char vowels [80];
int i;
int main (){
strcpy(vowels "aeiou AEIOU");
printf(":");
c = getchar();
for (i = 0; 1<10; i++){
if (c == vowel [i]){
printf("its vowel\n");
break;
}
}
Answers (2)