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();
 }

No comments:

Post a Comment