Arrays | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок


How do i write a program that declares an integer array if 50 elements.Using array of the loop constructs,initialise the first 25 elements to the square if index variable and last 25 elements to three times the index value.Output the array so that 10 elements per line are printed.

12th May 2018, 1:39 AM
johnson - avatar
2 ответов
+ 8
Appears to be assignment details. Please show your attempts at solving the problem so that we can help you.
12th May 2018, 1:52 AM
Hatsy Rei
Hatsy Rei - avatar
int arr[50]; For ( i = 0; i < 50; i++) arr[i] = [25]; It’s my first time programming I need help in understanding the question
12th May 2018, 6:59 PM
johnson - avatar