//this is a program for the demonstration of a structure
#include<stdio.h>
#include<conio.h>
void main()
{
struct student
{
char name[20];
int rollno;
float per;
}s;
printf("\n\nAccpeting the Data Of Students");
printf("\n\nEnter the Name, Roll No. and Percentage of the student: ");
scanf("%s%d%f",s.name,&s.rollno,&s.per);
printf("\n\nDisplaying the data: ");
printf("\n\nName: %s\n\nRoll No.: %d\n\nPercentage: %f",s.name,s.rollno,s.per);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
struct student
{
char name[20];
int rollno;
float per;
}s;
printf("\n\nAccpeting the Data Of Students");
printf("\n\nEnter the Name, Roll No. and Percentage of the student: ");
scanf("%s%d%f",s.name,&s.rollno,&s.per);
printf("\n\nDisplaying the data: ");
printf("\n\nName: %s\n\nRoll No.: %d\n\nPercentage: %f",s.name,s.rollno,s.per);
getch();
}