Skip to main content
Search
Search This Blog
Livecodo
Pages
Home
Courses
Blog
About us
More…
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
April 11, 2024
Write a c program to store records of n students based on roll_no, name, gender and 5 subject marks i) Calculate percentage each student using 5 subjects. ii) Display the student list according to their percentages
#include
#include
#include
struct student { int roll_no; char name[50]; char gender; int marks[5]; float percentage; }; int main() { int n; printf("enter the number of students "); scanf("%d",&n); struct student s[50]; for(int i=0;i
Popular Posts
March 26, 2024
Dynamic Memory allocation in C
May 18, 2024
Searching and sorting Algorithm in C