Breaking

How to create a result of the students and check pass or fell.


#include<stdio.h>
#include<conio.h>
void main()
{clrscr();

  
        int account,state,hindi,English,b.a,eco,s.p,h;

printf("\n ***************  result for commerce students  *************** ");

   printf("\n");
   printf("\n");

  printf("\n entrr a number of account ");
  scanf("%d",&account);

   printf(" entrr a number of state ");
   scanf("%d",&state);

   printf(" entrr a number of hindi ");
   scanf("%d",&hindi);

   printf(" entrr a number of english ");
   scanf("%d",&English);

   printf(" entrr a number of b.a ");
   scanf("%d",&b.a);

   printf(" entrr a number of eco ");
     scanf("%d",&eco);

   printf(" entrr a number of s.p ");
    scanf("%d",&s.p);

    printf("\n");
    h=account+state+hindi+English+b.a+eco+s.p;

   (account>33 &&  state >33   &&   hindi >33  &&  English >33  &&  b.a>33  &&       eco>33 &&  s.p)?printf("\nyou are pass "):printf(" you are fell ");

   
   printf("\nyour tatal mark is = %d",h);
   printf("\n your persentace is = %d",h/7);
}
Simple output :
entrr a number of account  : 86
entrr a number of state    : 85
entrr a number of  hindi   : 71
entrr a number of English  : 69
entrr a number of b. a     : 72
entrr a number of economic : 92
entrr a number of s.p      : 78
you are pass
Total marks is = 553
your percentage is = 79