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

During what phase of mitosis does the nuclear envelope disappear and the chromosomes become distinct
Which word best describes Nadia at the end of the story??
Stacy gets stressed easily, and when she does, she eats an entire carton of ice cream, a bag of potato chips, and drinks a 2-liter bottle of soda. she then forc
What was a main aim of the First Continental Congress? 1) Seek to repeal the Stamp Act 2) Protest the enforcement of the Navigation Acts 3) To have the Intolera
In order to make an A on her project, Sarah needs at least 160 points. She has already turned in part of her work and has been given 125 point so far. Write and
repetimos la __ para aprenderla
plz help with this quick don't add any complicated words
Which historical event was the most important in forming the character of modern Germany
What is the speed of a bobsled whose distance-time graph indicates that it traveled 118m in 26s
A psychological state in which a person wants to obtain a sexual object that one does not now have, or to engage in sexual activity in which one is not now enga