+ 1

What code will I type to get inputs for arrays in C++?

11th Sep 2021, 4:25 PM
Guru Prakash
1 Resposta
0
First you have to read about how to create array and which type of data you want to insert . Then if you know basics of cpp then u also know about cin statement which use for input . Then take one more variable i and use for loop Inside for loop you have to write index with cin statement and increase the index value one by one . Like this int array[5],i; for i =0 ;i<5 ;i++ cin>>array[i];
11th Sep 2021, 5:48 PM
A S Raghuvanshi
A S Raghuvanshi - avatar