Write the C++ statement to declare and initialize a 5-element, one-dimensional integer array named grades. Use the following gra
des to initialize the array: 100 90 80 78 98. Then write the C++ code to display the contents of the array on the screen using a 'for" loop.
1 answer:
Answer:
int grades[5] = { 100, 90, 80, 78, 98 };
for(int i=0;i<5; i++)
{
cout << grades[i];
}
You might be interested in
Answer:
More potential energy was stored and released as kinetic energy in the balloon that went farther.
Explanation:
I'm taking the test ; )
Answer:
use your own opinion
Explanation:
Answer:
false
Explanation:
i believe the right term is error
Answer:
I think it's True but I don't know sorry if I'm wrong