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

How many times does 3 go into 89
Mark the statement if it correctly describes Buddhism after the Buddha's death. A. Buddha's stories and talks were collected in books of writings. B. Althoug
If a car generates 18hp (which is 13428Watts) when traveling at a steady speed of 88km/h (which is 24.44m/s), what must be the average force exerted on the car
A hybrid orbitals that has greater s-character is more likely to possess___. a. Higher ionization energy. b. Greater electronegativity. c . Lower electronegativ
which coordinates most closely matches point e
Let f(x) = 16x5 – 48x4 – 8x3 and g(x) = 8x2. Find f of x over g of x. a) 2x2 + 6x + 1 b)2x2 – 6x – 1 c)2x3 + 6x2 + x d)2x3 – 6x2 – x
Describe all possible locations for the graph of (x,y) if x=2
7/8 multiplied by 6/13
How did the dowry contribute to female children being less desirable than male children?
Complete the following sentences: 1. ______ Adela_________(encantar) la música de Tito "El Bambino". 2. A______me______(interesar) la música de otros países. 3.