Computer Science, asked by prince5215, 1 year ago

Write an interactive program in C language to create an application program for your study centre. This application should be having menu options like student‟s details (Name, Enrollment, Address, Programme, course, contact, etc), semester enrolled for, assignments submitted and marks obtained, attendance for the practical courses etc. The application should be designed userfriendly.


prince5215: Pls Solve This Question I Need hole Detail

Answers

Answered by vee11
1
#include<studio.h>
main()
{
struct student
{
int rollno, address;
char name[30], course;
float marks;
};
struct student s[5];
int i;
for(i=0;i<=4;i++)
{
printf("\n enter roll no");
scanf("%d",&s[i].rollno);
printf("\n enter name");
scanf("%c", &s[i].name);
printf("\n enter marks");
scanf("%f", &s[i].marks);
printf("\n enter address");
scanf("%u",&s[i]. address);
printf("\n enter course");
scanf("%s", &s[i]. course);
}
for(i=0;i<=4;i++)
{
printf("rollno=%d",s[i].rollno);
printf("name=%s",s[i].name);
printf("marks=%f",s[i].marks);
printf("address=%u",s[i]. address);
printf("course=%s",s[i]. course);
}
}
Similar questions