TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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;
}
}
Reply
Answers (
2
)
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