/* Structure */
#include<stdio.h>
#include<conio.h>
struct Student
{
int eno;
char name[50];
int age;
};
main()
{
struct Student s1;
clrscr();
printf("\n Enter Entrollment No :");
scanf("%d",&s1.eno);
printf("\n Enter Your Name :");
scanf("%s",&s1.name);
printf("\n Enter Your Age :");
scanf("%d",&s1.age);
printf("\n Entrollment No :%d",s1.eno);
printf("\n Your Name :%s",s1.name);
printf("\n Your Age :%d",s1.age);
getch();
}
No comments:
Post a Comment