Why i m getting grade 9 in output?

#include<stdio.h>
int main()
{
int a,b,c;
printf (“enter carbon content\n”);
scanf ("%d %d %d" ,&a,&b,&c);
if (a>50 && b<0.7 && c>5600)
printf (" grade 10\n");
else if (a>50 && b<0.7 && c<5600)
printf (" grade 9\n");
else if( a<50 && b< 0.7 && c>5600)
printf(" grade 8\b");
else if (a>50 && b>0.7 && c>5600)
printf(" grade 7\n");
else if ( a>50 || b<0.7 ||c>5600)
printf (" grade 6\n");
else
printf (" grade 5\n");
return 0;
}

I don’t know - what input are you giving it?

Here is the link to the solution of the problem you’re trying to solve:
https://www.easterscience.com/q15-a-certain-grade-of-steel-is-graded-according-to-the-following-conditions-i-hardness-must-be-greater-than-50-ii-carbon-content-must-be-less-than-0-7-iii-tensile-strength-must-be-greater-than/#:~:text=Us%20C%20Programming-,Q15%20A%20certain%20grade%20of%20steel%20is%20graded%20according%20to,i)%20and%20(ii)%20are

but i want to know where i am going wrong?

One way you’re “going wrong” is “not telling us what input you’re giving it” :slight_smile:

b being an int is odd, as well.

20210322_014715|352x500](upload://7Sqbu4WuJmE0jVrPBtkCR6s6N2.jpeg)
This is the problem i m trying to solve