#include <stdio.h>
int main() 
{
    int a,b,c,avg;
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);
    if(a>35,b>35,c>35)
    {
        printf("pass\n");
    }
    else
    {
        printf("fail\n");
    }
    avg=(a+b+c)/3;
    if (avg>=60)
    {
        printf("first class\n");
    }
    else 
    {
        printf("second class\n");
    }
        return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: