#include<stdio.h>
#include<conio.h>
typedef struct student
{
char n[10];
int marks;
}status;
void main()
{
status record;
int i;
printf("Enter the name :");
scanf("%s",record.n);
printf("Enter the Marks : ");
scanf("%d",&record.marks);
printf("\nNAME\t\tMARKS\n");
printf("\n%s\t\t%d",record.n,record.marks);
getch();
}
OUTPUT
Comments