How to print marks of student in c language by array by abhii

 How to print marks of student in c language by array 

here is your code 

#include<stdio.h>

int main()
{
int n_student=1;
int n_subject=3;

int marks [5][1];
for(int i=0;i<n_subject;i++)
for(int j=0;j<n_student;j++)
{
printf("enter the marks of student is %d in subject is %d\n ",i+1,j+1);
scanf("%d",&marks[i][j]);
}
for(int i=0;i<n_subject;i++)
for(int j=0;j<n_student;j++)
{
printf("enter the marks of student is %d in subject %d is:%d\n ",i+1,j+1,marks[i][j]);
}
 
    return 0;
}




//#abhiiblog



Comments