Close
Close

in c ++ what does this line means : cin >> values[i];

   nitishkumar

include <iostream>
using namespace std;

int main()
{
const int size = 10;
int values[size];

cout << "Please enter up tp 10 positive numbers." << endl;

for (int i=0; i < size; i++)
{
    cin >> values[i];
}

    cout << endl;
    cout << values[size];



system("pause");
return 0;

what does this means : cin >> values[i];


Answers

  •   

    cin » value[i] means that we are taking a value from the user using cin and storing in the element of the array ‘value’ having the index ‘i’.



Ask Yours
Post Yours
Write your answer