Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Print a grade for a given mark using a switch statement.
#include <stdio.h> int main() { int marks; scanf("%d", &marks); switch (marks / 10) { case 10: case 9: printf("Grade: A\n"); break; case 8: printf("Grade: B\n"); break; case 7: printf("Grade: C\n"); break; default: printf("Grade: F\n"); } return 0; }
85
Grade: B