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
I think here you don't need any explanation.
Regards,
sidh
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
Regards,
sidh
0 comments:
Post a Comment