Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to scan array in c++

# include <bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	int a[n];
	for(int i =0;i<n;i++){
		cin>>a[i];
	}
	for(int i =0;i<n;i++){
		cout<<a[i];
	}
}
 
PREVIOUS NEXT
Tagged: #scan #array
ADD COMMENT
Topic
Name
3+3 =