Your task is to write a C program to generate the report card of a student based on his marks
secured in the final examination.
Desired Output
------------------------------------------------------------------------
Jawahar Navodaya Vidyalaya
Annual Report Card
Name: Sriyank Siddhartha
Standard: 10
Section: A
Marks Secured out of 100
Mathematics: 93
English: 74
Hindi: 85
Science: 97
Social Science: 81
Total marks secured: 430
Grade: B
Answers
Answered by
10
Answer:
#include <stdio.h>
struct student {
char name[50];
int roll;
float marks;
} s;
int main() {
printf("Enter information:\n");
printf("Enter name: ");
fgets(s.name, sizeof(s.name), stdin);
printf("Enter roll number: ");
scanf("%d", &s.roll);
printf("Enter marks: ");
scanf("%f", &s.marks);
printf("Displaying Information:\n");
printf("Name: ");
printf("%s", s.name);
printf("Roll number: %d\n", s.roll);
printf("Marks: %.1f\n", s.marks);
return 0;
}
Answered by
3
Answer:
i hope it will help you to solve your question
Attachments:
![](https://hi-static.z-dn.net/files/d1c/0a91467353212cc5cd055b7f8379c56d.jpg)
Similar questions