- 1
Fill in the blanks to declare an array of integers containing 9 elements. Assign to each element the value 45 using the for loop
int anArray[ ] ; for (int x = 0; x <= ; x++) { anArray[ ] = 45; }
9 Réponses
+ 8
int array[9];
for (int x =0; x < 9; x++){
array[x] = 45;
}
+ 7
9
8
x
+ 3
finally done
+ 1
I tried this already... This is wrong dear....
+ 1
int anArray[
] ;
for (int x = 0; x <=
; x++)
{
anArray[
] = 45;
}
0
Thank you all
helpful of you guys
0
import numpy as np
x = np.arange(1,10)
print(x)
print(x[0:2])
print(x[5:])
print(x[:3])
print(x[:2])
print(x[-3:])
print(x[-1:])
- 1
print(x[-1])
this is used to print the last element in an array