Saturday, 3 March 2012

C++ Practice A-2

Hi,

Did you try & win reading two inputs and print them to screen?

I hope you done that. Anyway I am giving the syntax here to do that.

-----------------
#include<iostream.h>
#include<conio.h>
void main()
{
            int a,b;
          clrscr();
           cout<<"Enter First Number :";
           cin>>a;
        cout<<"Enter Second Number :";
           cin>>a; 
          cout<<"Your First Number is :";
         cout<<a;
        cout<<"Your Second Number is :";
          cout<<a; 
           getch();
}
--------------------
Screenshot 1

Screenshot 2



I think here you don't need any explanation. 


Regards,


sidh

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Web Hosting Coupons