sami sam

sami sam

  • NA
  • 40
  • 30.3k

need help in (getchar) and (for)

Aug 17 2012 5:16 AM
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)