Program to illustrate toupper( ) function


    #include <iostream.h>
     #include <conio.h>
    #include <ctype.h>                // header file for toupper( )
    void main ( )
    {
        int i , character ;
        cout<<"Lower Case Series \t Upper Case Series \n" ;
        for ( i = 481 ; i < 507 ; i++)
        {
            character = toascii (i) ;
                               cout<<"\t"<< char(character) <<"\t\t\t"
                                               << char (toupper(character));
                    cout<<"\n";
        }
        getch ( ) ;
    }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|