0% found this document useful (0 votes)
2 views2 pages

Student Score to Grade Converter

Uploaded by

sopkuateb
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Student Score to Grade Converter

Uploaded by

sopkuateb
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

#include <stdio.

h>

int main() {

int score;

// Prompt the user for input

printf("Enter the student's score: ");

scanf("%d", &score);

// Determine the grade based on the score

if (score >= 90) {

printf("Grade: Excellent\n");

else if (score >= 80) {

printf("Grade: Very Good\n");

else if (score >= 70) {

printf("Grade: Good\n");

else if (score >= 50) {

printf("Grade: Passed\n");

else {

printf("Grade: Failed\n");

}
return 0;

You might also like