INPUT MARKS IN FIVE SUBJECTS AND PRINT THE DIVISION


/* >60
FIRST DIVISION
60-40
SECOND DIVISION

<40
THIRD DIVISION

/*
#include<stdio.h>
#include<conio.h>
void main()
{
long int a,b,c,d,e;
double avg;

clrscr();

printf("ENTER MARKS IN FIVE SUBJECTS");

scanf("%ld,%ld,%ld,%ld,%ld",&a,&b,&c,&d,&e);

avg=(a+b+c+d+e)/5;

if(avg>60)
printf("FIRST DIVISION");

else if(avg<40)
printf("THIRD DIVISION");

else
printf("SECOND DIVISION");

getch();
}

SIMPLE PROGRAMS
FUNCTIONS


NUMBERS


STRINGS AND CHARACTERS

Comments