>>> Example 5 : Demo Of Cin And Cout.
#include<iostream.h>
#include<conio.h>
void main()
{
int a=0,b=0,c=0;
clrscr();
cout << "Enter a and b ->";
cind >> a >> b;
c = a + b;
cout << "\n Ans = "<<c;
getch();
}
>>> Output :
Enter a and b -> 5 6
Ans = 11
Nice
ReplyDelete