Programming in C Microproject I scheme | Print Student marksheet

Algorithm: Display Marksheet of the student.
Input: Subject,name ,Rollno,etc.
Output: Marksheet
Step 1: Start
Step 2: Declare variable pic,math,bex,eee,t,roll, n[10],per
Step 3 : Read the name and numbers pic,math,bex,eee,,roll, n[10]
t=pic+math+bex+eee;
per=(t*100)/400;

Step 5: Display/Print values and string present in  pic ,math ,bex ,eee ,t ,roll, n[10],per.
Step6: Stop.

Flowchart:

Source Code:
```#include<stdio.h>
#include<conio.h>
void main()
{
int pic,math,bex,eee,t,roll;
char n[10];
float per;
clrscr();
printf("\nEnter the Roll no:");
scanf("%d",&roll);
printf("\nEnter the name of Student:");
scanf("%s",&n) ;
printf("\nEnter the marks of PIC:");
scanf("%d",&pic);
printf("\nEnter the marks of Math:");
scanf("%d",&math);
printf("\nEnter the marks of BEX:");
scanf("%d",&bex);
printf("\nEnter the marks of EEE:");
scanf("%d",&eee);
t=pic+math+bex+eee;
per=(t*100)/400;
printf("\n************Marksheet of Students****************************************");
printf("\nRoll No\tName \tPIC\tMath\tBEX\tEEE\tTotal\tPercentage\n");
printf("\n%d\t%s\t%d\t%d\t%d\t%d\t%d\t%f\n",roll,n,pic,math,bex,eee,t,per);
printf("\n*************************************************************************");
getch();
}```

Output: