Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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]);
Source by discuss.codechef.com #
 
PREVIOUS NEXT
Tagged: #convert #space #separated #integers
ADD COMMENT
Topic
Name
3+7 =