Answers for "c++ read space separated numbers"

C++
0

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]);
Posted by: Guest on June-28-2020

Code answers related to "c++ read space separated numbers"

Browse Popular Code Answers by Language