Advertisement

C Programing


C programming
Grade sheet using IF ELSE:
#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
x=0.00; }
printf("Result::%f",x);
getch();
}

No comments:

Post a Comment

Please comment bellow. Share your knowledge