Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- struct student{
- char name[50];
- int age;
- double height;
- };
- int main()
- {
- struct student first;
- //first.name;
- scanf("%d",&first.age);
- scanf("%lf",&first.height);
- fgets(first.name,50,stdin);
- //printf("%s",name);
- printf("name of the student is : %s\n",first.name);
- printf("his age is %d and height is %.2lf",first.age,first.height);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement