[Solved] How do i enter 10 numbers in array? [closed]


I believe this is a Home work question!
Anyways
write a separate method

void GetTenNumbers(int arr[]){  
    for(int counter =0; counter <10; counter ++){  
        cout<<"Enter number ";  
        cin>> arr[counter];  
    }  
}

and do something like this

case 1: 
{
  cout<<"Enter 10 numbers: ";
  GetTenNumbers(arr);
  break;
}

solved How do i enter 10 numbers in array? [closed]