Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

write a c programm accept 5 student details withe the following details(use structures) student ID ,age and phone number

0 votes
asked Apr 21, 2019 by anonymous

1 Answer

0 votes
answered Apr 25, 2019 by Sindhuja Sharma
#include<stdio.h>

#include<stdlib.h>

struct student

{ char sid[10];

int age;

int pno;

}s[5];

int main()
{int i;

for(i=0;i<5;i++)

{

printf("Enter Id:");

scanf("%s",s[i].sid);

printf("Enter Age:");

scanf("%d",&s[i].age);

printf("Enter Phone Number:");

scanf("%d",&s[i].pno);

} //for

} //main()
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...