0
How to create an array that takes integers as its element ??[i want to input the integers ]
how to create a float array ???
1 Respuesta
+ 4
int size=5;
int arr[5];
for(int i=0;i<size;i++){
cout << "Enter value:";
cin >> arr[i];
}
of course, replace int with float if you want it to be a floats array