i want to know when we take the input using cin then what does '\n' and ' ' does.
#include <iostream>
#include <string>
using namespace std;
int main()
{
int x, y;
string s;
double a, b;
cin >> x;
cin >> y;
cin >> s;
cin >> a;
cout << x << " " << y << " " << s << " " << a << endl;
return 0;
}
is'nt this code is expected to end if i enter consicutive 4 time '\n'