Sunday, 7 April 2013

Program to convert lower case to upper case letter in c++


#include<stdio.h>
#include<conio.h>
#include<iostream.h>
void main()
{
 char ch;
 cout<<"enter lower case letter=";
 ch=getche();
 if(ch>=96&&ch<=122)
 ch=ch-32;
 cout<<"\nresult in upper case letter="<<ch;
 getch();
 }
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments:

Post a Comment