Draw a flowchart and write the pseudocode to read english consonants till the user wishes to stop
Answers
Answered by
2
Answer:
nark my answer as brainliest and I will follow you
Answered by
2
Answer: #include <stdio.h>
int main() {
char c;
int lowercase_vowel, uppercase_vowel;
printf("Enter an alphabet: ");
scanf("%c", &c);
// evaluates to 1 if variable c is a lowercase vowel
lowercase_vowel = (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u');
// evaluates to 1 if variable c is a uppercase vowel
uppercase_vowel = (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U');
// evaluates to 1 (true) if c is a vowel
if (lowercase_vowel || uppercase_vowel)
printf("%c is a vowel.", c);
else
printf("%c is a consonant.", c);
return 0;
Explanation: I hope it helps u...
Similar questions
Social Sciences,
2 months ago
English,
2 months ago
Science,
2 months ago
French,
4 months ago
Computer Science,
4 months ago
Math,
10 months ago
English,
10 months ago
Math,
10 months ago