Determining the uppercase and lowercase vowels.
Using Visual Studio 2015. ========================================================================= #include<iostream> using namespace std; #include<conio.h> void main() { char input; cout<<"Input="; cin>>input; if (input == 'a' || input == 'e' || input == 'i' || input == 'o' || input == 'u') { cout<<"Lowercase Vowel"; } else if (input == 'A' || input == 'E' || input == 'I' || input == 'O' || input == 'U') { cout<<"Uppercase vowel"; } else { cout<<"Invalid input"; } _getche(); } ========================================================================= This program is to determine a lowercase or an uppercase vowel from the user's given input. We used "using namespace std;" because in the Visual studio, the header file "iostream" cannot be used without it. We use...
Comments
Post a Comment