Answer to Question #7210 in C++ for abdelrhman

Question #7210
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
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS