Program to show results according to percentage in C-language

Program to show results according to percentage in C-language

#include<stdio.h>
int main()
{
float p;
printf("Enter your percent\n");
scanf("%f",&p);
if(p>=65)
{
printf("First division");
}
else if(p>=40)
{
printf("Second division");
}
else if(p>=33)
{
printf("Third division");
}
else
{
printf("Fail");
}
}
OUTPUT
Enter your percentage
75.5
First division

Visit Homepage

Comments

Popular posts

Creative pattern of butterfly in C-language

Program to show present time and date in C-language

Introduction of C-language.

Program to cheque enter number is a perfect number or not using if else in C-language

Program to cheque four digits number is palindrome or not in C-language

Program to print the cube of a number in c-language

Simple Hello world program in c- language