Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
need help in (getchar) and (for)
sami sam
12y
1.1k
1
Reply
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;
}
}
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Write a program that asks a user to type in a number between 1 and 100. Tell the user if the number is valid.
AutoFill combo box