Leap year total percentage:



main()
{
    int a,b,c,d,total,avg;
    clrscr();

    printf("Enter value of a");
    scanf("%d",&a);

    printf("\n Enter value of b");
    scanf("%d",&b);

    printf("\n Enter value of c ");
    scanf("%d",&c);

    printf("\n Enter value of d");
    scanf("%d",&d);

    total=a+b+c+d;

    printf("\n total %d",total);

    avg=total/4;

    printf("\n avg %d",avg);

    if(avg>35)
    {
        printf("\n student is pass");
    }
    else
    {
        printf("\n student is fail");
    }
getch();
}
           

Output: