Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

array and for loop in c++

//inserting array elements in cpp
#include<iostream>
using namespace std;
int main()
{
  int arr[100];//you can give any data type and any array size you want
  for(int i=0;i<100;i++)
  {
    cin>>arr[i];
  }
  return 0;
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #array #loop
ADD COMMENT
Topic
Name
2+6 =