- 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; }

31st Oct 2017, 10:12 AM
Muhammad Ali
Muhammad Ali - avatar
9 Respostas
+ 8
int array[9]; for (int x =0; x < 9; x++){ array[x] = 45; }
31st Oct 2017, 10:28 AM
imouse
imouse - avatar
+ 7
9 8 x
21st Aug 2019, 1:20 PM
Farhan Nurrahman
Farhan Nurrahman - avatar
+ 3
finally done
19th Dec 2018, 4:06 PM
Ajaya Kumar
Ajaya Kumar - avatar
+ 1
I tried this already... This is wrong dear....
31st Oct 2017, 2:13 PM
Muhammad Ali
Muhammad Ali - avatar
+ 1
int anArray[ ] ; for (int x = 0; x <= ; x++) { anArray[ ] = 45; }
19th Apr 2020, 4:40 PM
Justin George
Justin George - avatar
0
Thank you all helpful of you guys
15th Apr 2020, 1:06 AM
Waled Moumari
Waled Moumari - avatar
13th Mar 2021, 4:43 PM
Daminov Muhammadyunus
Daminov Muhammadyunus - avatar
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:])
19th Sep 2022, 10:45 AM
YAZEENKHAN
- 1
print(x[-1]) this is used to print the last element in an array
7th Nov 2022, 3:36 PM
Mohamed Mokhtar Medina
Mohamed Mokhtar Medina - avatar