int a , b;
cin >> a >> b;
cout << "Enter the values of a and b" << endl;
cin >> a >> b; //cascading the cin operator
#include <iostream>
using namespace std;
int main() {
int n1, n2;
float f1;
char c1;
cout<<"Enter two integers, a float and a char: ";
cin>>n1>>n2>>f1>>c1; //multiple input in single line
cout<<"Check: "<<n1<<n2<<f1<<c1<<endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
char a;
int num;
cout << "Enter a character and an integer: ";
cin >> a >> num;
cout << "Character: " << a << endl;
cout << "Number: " << num;
return 0;
}