hi i have a program that is supposed to put in the number of student and marks and printf them out on the screen. this is not working can somone tell me what i did wrong
Code:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
main()
{
char student[2][9];
float marks[2][3];
int numb,i,j;
printf("how many student");
scanf("%d",&numb);
for(i=0;i<numb;i++)
{
printf("student name");
scanf("%s",&student);
for(j=0;j<5;j++)
{
printf("enter the mark");
scanf("%i",&marks[i][j]);
}
}
printf("%\n\n", "Student", "PRG", "DGS", " MTH", " ECR", " GED");
for (i = 0; i < numb; i++) {
printf("%s", student[i]);
for (j = 0; j < 5; j++) {
printf("%d ", marks[i][j]);
}
printf("\n");
}
getch();
}