how to take space separated int input in c++ code example
Example: how to convert n space separated integers in c++
int i, n, arr[100];
scanf("%d", &n);
for (i = 0; i < n; ++i)
scanf("%d", &arr[i]);
int i, n, arr[100];
scanf("%d", &n);
for (i = 0; i < n; ++i)
scanf("%d", &arr[i]);