Answers for "creare array con c++"

C++
0

creare array con c++

#include <iostream>
int main()
{
int myArray[] {2, 4, 6, 8, 10};
for (int i=0; i<5; i++)
{
std::cout << "index: " << i << " - value: " << myArray[i] << "\n";
}
return 0;
}
Posted by: Guest on March-31-2020

Browse Popular Code Answers by Language