Difference between next line inputs and space separated inputs

suppose a problem asked me to take 3 space separated input,
will it be correct to take one input (using cin) and do some calculations and then take remaining 2 inputs.
ex:
cin>>x;
.
.
.
.
.
cin>>y>>z;
//thank you.

Yes, as long as other inputs , for ex. y and z are not required in your calculations, you can do so.

2 Likes