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*/
#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2,n3,n4,n5,tot;
float per ;
clrscr();
printf("\n Enter number of Five subjects");
scanf("%d%d%d%d%d",n1,n2,n3,n4,n5);
tot = n1 + n2 + n3 + n4 + n5;
per = tot / 5.0 ;
printf("\n \n Your Total Marks=%d",tot);
printf("\n Your Percentage = %f",per);
if(per>=60)
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");

      else
      printf("\n NO Division ");
getch();

}

Who's online

We have 14 guests and no members online

About Us

Harsimran Singh

Hello

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(about.me)

Harsimran Singh(G+)