#include <iostream>
using namespace std;
bool isVowel(char character);
int main()
{
char character;
cout << "Enter a letter, if it is a vowel this program will tell you" << endl;
{
cin >> character;
cout << isVowel(character) << endl;
if(isVowel(character)==true)
}
bool isVowel(char ch)
{
if('A'==ch||'a'==ch||'E'==ch||'e'==ch||'I'==ch||'i'==ch||'O'==ch||'o'==ch||'U'==ch||'u'==ch)
return true;
}
else return false;
}
1newguy
0
Newbie Poster
Recommended Answers
Jump to PostRTFCM
(Read the Full Compiler Messages)
Pay attention to matching opening and closing { }
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.