DemonLeone6563 DemonLeone6563
  • 14-08-2020
  • Computers and Technology
contestada

cpp g 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

Respuesta :

wiitong0394703
wiitong0394703 wiitong0394703
  • 14-08-2020

Answer:

lol don't ask people to write code for you

assuming its an array, n is size.

normally:

for(int ele: courseGrades){

cout << ele <<" ";

}

cout << endl;

reverse:

reverse(courseGrades, courseGrades + n);

for(int ele: courseGrades){

cout << ele <<" ";

}

cout << endl;

Answer Link

Otras preguntas

Please help click on the image below
what was the american system that was adopted by japan during the meiji era
What are some factors that control the carrying capacity of Earth?
Chlamydia is a bacteria believed to be responsible for the majority of ______ in men
Activity level, stress and nutrition are considered ______________ risk factors for many hypokinetic conditions.
if x^2-6x+8=0, then x-6=0 or x-2=0. true or false
God's anger was kindled against Miriam and Aaron at: Kibroth Hazeroth Kadesh Kadesh???
In Greek tragedy, hubris is excessive pride or vanity that causes characters to overstep their boundaries and then fall in vain. In Antigone, Creon displays hub
Helppppppppppppppppp
Which case type is the pronoun "whom"?