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.

Expert's answer

#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!

LATEST TUTORIALS
APPROVED BY CLIENTS