/* Program for displaying an lower case Alphabet in UPPER case. */ #include <iostream> using namespace std; int main() { char alphabet; cout << "Enter an alphabet in lower case?\t"; cin >> alphabet; while (alphabet < 97 || alphabet>122) { cout << "Please enter only lower case aplphabets.\nEnter an alphabet in lower case?\t"; cin >> alphabet; } alphabet = alphabet - 32; cout << "\nEntered alphabet in UPPER CASE is\t" << alphabet << endl; return 0; }
This blog is about coding in some commonly used "High Level Languages" like C, C++, Java etc. At first, I will post here basic programs written in C++ language only.
Tuesday, November 25, 2014
C++ Program for displaying an lower case Alphabet in UPPER case
Labels:
C++ Programs
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment