Complete result :
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
float x;
clrscr();
printf("Input Vlue::");
scanf("%d",&a);
x=a;
{
if(a>=80)
x=4.00;
else if(a>=75)
x=3.75;
else if(a>=70)
x=3.5;
else if(a>=65)
x=3.25;
else if(a>=60)
x=3.00;
else if(a>=55)
x=2.75;
else if(a>=50)
x=2.50;
else if(a>=45)
x=2.25;
else if(a>=40)
x=2.00;
else
x=0;
}
printf("Result::%f",x);
getch();
}
No comments:
Post a Comment
Please comment bellow. Share your knowledge