#include<stdio.h>
#include<conio.h>
struct student{
char name[20];
int roll_no;
char add[30];
};
Void main()
{
struct student s1;
clrscr();
printf("\nEnter your name:");
scanf("%s",&s1.name);
printf("\nEnter your roll no.:");
scanf("%d",&s1.roll_no);
printf("\nEnter your Address:");
scanf("%s",&s1.add);
printf("\nOutput\n");
printf("\nYour name:%s",s1.name);
printf("\nRoll no.:%d",s1.roll_no);
printf("\nAddress:%s",s1.add);
getch();
}
No comments:
Post a Comment