Sunday, 24 November 2013

Filled Under:

Print Integer in C

This c program first inputs an integer and then prints it. Input is done using scanf function and number is printed on screen using printf.

void main()
{
    char a[20];
    cout<<"Enter 1 word: ";
    cin>>a;
   
    MyString s(a);
    cout<<endl;
    cout<<"Direct Output: "<<endl;
    s.printString();
    cout<<endl;
    cout<<endl;
    cout<<"After UpperCase: "<<endl;
    s.UpperCase();
    s.printString();
    cout<<endl;
    cout<<endl;
    cout<<"After LowerCase: "<<endl;
    s.LowerCase();
    s.printString();
    cout<<endl;
    getch();
}

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

© 2013 iPRESS. All rights resevered. Designed by Templateism