Total Marks and percentage of marks obtained in five subjects

/* Write a program to find Total Marks and percentage of marks obtained in five subjects*/
void main()
int n1,n2,n3,n4,n5,tot;
float per ;
printf("\n Enter number of Five subjects");
tot = n1 + n2 + n3 + n4 + n5;
per = tot / 5.0 ;
printf("\n \n Your Total Marks=%d",tot);
printf("\n Your Percentage = %f",per);
printf("\n You got 1st Division");

  else if(per>=40)
  printf("\n You got 2nd  Division");

    else if(per>=27)
    printf("\n You got 3rd Division");

      printf("\n NO Division ");


Who's online

We have 12 guests and no members online

About Us

Harsimran Singh


This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(

Harsimran Singh(G+)