Answer to Question #344345 in C++ for Kim

Question #344345

Create a program that will store the values 90 88 78 95 in array name Grades, then display horizontally with 5 space each value.

1
Expert's answer
2022-05-24T13:54:56-0400
#include <iostream>
using namespace std;
 
int main()    {
int Grades[4]={90, 88, 78, 95}, i;

cout<<"Grades: "<<endl;
for  (i=0; i<4;++i)
    cout<< Grades[i]<<"     ";
cout<<endl<<endl;

return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS