#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d",&a);
printf("enter your first subject mark:%d\n",a);
scanf("%d",&b);
printf("enter your second subject mark:%d\n",b);
scanf("%d",&c);
printf("enter your third subject mark:%d\n",c);
if (a/3 + b/3 + c/3 <35)
{
printf("student is fail");
}
else if (a/3 + b/3 +c/3 >= 60)
{
printf("student obtained first class");
}
else
{
printf("student obtained second class");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: