Computers and Technology

Write a for loop to print all elements in coursegrades, following each element with a space (including the last). print forwards, then backwards. end each loop with a newline. ex: if coursegrades = {7, 9, 11, 10}, print: 7 9 11 10 10 11 9 7 hint: use two for loops. second loop starts with i = coursegrades. length - 1. (notes) note: these activities may test code with different test values. this activity will perform two tests, both with a 4-element array. see "how to use zybooks". also note: if the submitted code tries to access an invalid array element, such as coursegrades[9] for a 4-element array, the test may generate strange results. or the test may crash and report "program end never reached", in which case the system doesn't print the test case that caused the reported message.

answer
Answers: 2

Similar questions

Do you know the correct answer?
Write a for loop to print all elements in coursegrades, following each element with a space (includi...

Questions in other subjects: