Here is C Program to Accept Student Roll No, Marks in 3 Subjects & Calculate Total, Average & Print
# include <stdio.h>
# include <conio.h>
main()
{
int r,b,c,d, total, average;
clrscr();
printf (“ENTER STUDENT ROLL NO ; “);
scanf (“%d”,&r);
printf(“ENTER FIRST SUBJECT MARKS;”);
scanf(“%d”,&b);
printf(“ENTER SECOND SUBJECT MARKS;”);
scanf(“%d”,&c);
printf(“ENTER THIRD SUBJECT MARKS;”);
scanf(“%d”,&d);
total=b+c+d;
average=total/3;
printf(“\n\n\t\t CodeWithC University \n\n”);
printf(“\t STUDENT RollNo ; %d “,r);
printf(“\t FIRST SUBJECT MARKS ;%d “,b);
printf(“\t SECOND SUBJECT MARKS ;%d “,C);
printf(“\t THIRD SUBJECT MARKS ;%d “,d);
printf(“\t AVERAGE MARKS ;
%d”, average);
getch();
}