int n;
cin >> n;
int no;
int ans = 0;
for (int i=0; i < n; i++)
{
cin >> no;
ans = ans ^ no;
}
}
After hit enter,
the program asks for the first n.
Then it should play loop for each input number n times an !!?
I didn’t get that the way bhaiya enter input in such style.
Means how it works this way !!!
In console:
7
1 2 3 4 5 6 7
Explain to me the input style used in the program.
Hope you got my doubt.