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

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.