program to find the grade of a student



Hello friend toady we are going to make a new type of program to find out the grade of a student which is already defined acceding to our perimeter, 
We need to input the marks of different subjects as it would be used to calculate the percentage of the student and thus would help you to obtain the result.
How to start is the question which comes into mind?

No issue with that so, you have to think of the steps you would be following to make it a program, what is required at 1 step when what will happen next.... and so on.
today c4fun brings the students fun
we will finf out  how to  grade accordingly to the marks we have obtained, using the ladder .
might  sometime you are given problem statement otherwise you can use the idle condition .
you may change the grade according to your will.

#include<stdio.h>
#include<conio.h>
void main()
{
int pc;
clrscr();
printf("\n enter percentage\n");
scanf("%d",&pc);
if(pc<||pc>100)
printf("invalid inprut");
else if(pc>=80)
printf("\n A grade");
else if(pc>=60)
printf("B is grade");
else if(pc>=40)
printf("C grade);
else
printf("F grade\n");
getch();
}

change the grade and marks with different inputs ,its a totally fun to see hw your friend perfoemed by the marks you wish your friend should have
enjoy coding


When you have done coding and testing now it’s time to share the result you have obtained from the program
Comment down the result you aver obtained while running your code?
Was the result as expected by you if not what was the error?
Share your vies was the program really difficult after you have used the source code?


Share this program among your friends whom you think it would help them as when you build the simple program then you build and boost up your confidence so do share the blog among your friends and   remember sharing is caring so share as much as u can.



If you have any doubt or query or any problem, comment down the question if comment section and it would be resolve as soon as possible.
Keep coding ….and keep yourself updated which is the most important thing required in the field of coding, as things keep changing every moment.
Keep sharing…..
Keep learning….


1 comment:

thanks for reading and sharing.I hope it would help you!!!!

Powered by Blogger.