Alphabets from Lower Case to Upper Case

08:09 0 Comments A+ a-

Problem:
Write a program that prompts the user to enter an alphabet in small caps (a, b, c, ......... z) and display the entered alphabet into its upper caps (A, B, C, ......... Z).
Solution:
# include <iostream> using namespace std; int main() { char A; cout<<"Enter the Alphabet in small caps"<<endl; cin>>A; A=(A-32); cout<<"The Alphabet in Upper Caps is:"<<(static_cast <char>(A))<<endl; return 0; }