0

array

fell in the blank declare an array of integers contaning 9 element .A assign to each element the value 45 using the for loop int anArray[]; for(int x;x<= ;x++){ anArray[]=45; }

25th Jan 2019, 2:00 PM
shahzeb
shahzeb - avatar
3 Respuestas
+ 3
#include <iostream> using namespace std; int main() { int array[9]; for (int i = 0; i <= 8; i++) { array[i] = 45; std::cout << array[i] << std::endl; } return 0; }
25th Jan 2019, 2:50 PM
Dread
Dread - avatar
0
I do not have the answer
25th Jan 2019, 2:02 PM
shahzeb
shahzeb - avatar
0
anArray[9]; for (int x = 0; x < 9; x++){ anArray[x]=45; }
25th Jan 2019, 3:10 PM
Seb TheS
Seb TheS - avatar