WAP to take the percentage marks of a student as input and find which division the student falls into using logical operators
WAP to take the percentage marks of a student as input and find which division the student falls into using logical operators
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float p;
printf("Enter the Percentage ");
scanf("%f",&p);
if(p>=90 && p<=100)
printf("Division = A");
else if(p<90 && p>=75)
printf("Division = B");
else if(p<75 && p>=55)
printf("Division = C");
else if (p<55 && p>=35)
printf("Division = D");
else if(p<35 && p>=0)
printf("Division = E");
else
printf("Wrong input");
getch();
}