HSC Grading System Algorithm, Flowchart and C Program
Flow-Chart
C Program
#include <stdio.h>
#include <conio.h>
void main()
{
int x;
printf("Please Enter Your Marks Obtained:");
scanf("%d",&x);
if(x<=100 && x>=80)
{
printf("You Got A+");
}
else if(x<=79 && x>=70)
{
printf("You Got A");
}
else if(x<=69 && x>=60)
{
printf("You Got A-");
}
else if(x<=59 && x>=50)
{
printf("You Got B");
}
else if(x<=49 && x>=40)
{
printf("You Got C");
}
else if(x<=39 && x>=33)
{
printf("You Got D");
}
else
{
printf("You are Fail");
}
}
Comments
Post a Comment