Write a for loop to print all elements in coursegrades


Question: 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 #include using namespace std; int main() { const int NUM_VALS = 4; int courseGrades[NUM_VALS]; int i = 0; courseGrades[0] = 7; courseGrades[1] = 9; courseGrades[2] = 11; courseGrades[3] = 10; #type your solution here# return 0; }

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a for loop to print all elements in coursegrades
Reference No:- TGS02263626

Expected delivery within 24 Hours