write a program segment to input data elements into a single dimensional array
Answers
Answered by
0
Answer:
Using 'for' loop: int age [10],i; for(i = 0;i<10;i++) { cin>>age[i]; } for(i=0;i<10;i++) cout<
Answered by
0
Answer:
Using 'for' loop:
int age [10],i;
for(i = 0;i<10;i++)
{
cin>>age[i];
}
for(i=0;i<10;i++)
cout<<age[i];
Similar questions