2012-03-06T08:40:49-05:00
write a program that prompts to enter student grade and name , 3 times for each of them and show the result of each name with the grade
1
2012-03-13T07:35:28-0400
#include <iostream> using namespace std; int i,j; int grade[3][3]; char name[3][100]; void main(){ for (i=0;i<=2;i++){ & cout<<"Enter the student's name: "; & cin>>name[i]; & for (j=0;j<=2;j++){ & cout<<"Enter his "<<j+1<<" grade: "; & cin>>grade[i][j]; & } } for (i=0;i<=2;i++){ & cout<<name[i]; & for (j=0;j<=2;j++) cout<<" "<<grade[i][j]; & cout<<"\n"; } }
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 !
Learn more about our help with Assignments:
C++
Comments