Create a program that will store the values 90 88 78 95 in array name Grades, then display horizontally with 5 space each value.
#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;
}
Comments
Leave a comment