Computer Science, asked by bimanchandraroy3, 7 hours ago

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 swarnadip921
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 davinderkaurr82
3

Answer:

i hope it will help you to solve your question

Attachments:
Similar questions