63 829
Assignments Done
99,3%
Successfully Done
In August 2018

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

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions