how to interatr throught an input of numbers seperated by spaces 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]);