In this program you will learn how to use cascading/ multiple cin and cout in c ++ programming language to print values and messages together.
/*C++ program to demonstrate example of cascading cout & cin.*/
using namespace std;
//without cascading cout
cout << "Enter value of a and b : ";
cin >>a >>b;
cout<< "A : " << a << ", B : " << b << endl;
Enter value of a and b :10 20
A : 10, B : 20
total answers (1)
start bookmarking useful questions and collections and save it into your
own study-lists, login now to start creating your own collections.