#include <stdio.h>
int main() {
int a ,marks;
printf("Enter the marks\n");
scanf("%d",&marks);
if(marks>85 && marks<=100)
{
printf("student has secured grade A");
}
else if(marks>60 && marks<=85)
{
printf("student has secured grade B+");
}
else if(marks>40 && marks<=60)
{
printf("student has secured grade B");
}
else if(marks>30 && marks<=40)
{
printf("student has secured grade C");
}
else
{
printf("student has failed");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: