Question:-
A Certain grade of steel is graded according in the following condition.
(1) Hardness must be greater then 50.
(2) Tesile strength must be greater then 5600.
(3) Carbon content must be less then 0.7


The grades are as follows
Grade is 10 if all above conditions are met.
Grade is 9 when 1 and 2 condition are met.
Grade is 8 when 2 and 3 conditions are met.
Grade is 7 when 1 and 3 conditions are met.
Grade is 6 if only one condition met.
Grade is 5 if none are met.

I m getting wrong output for Grade 10 and 6.Both are over lapping.
when all the condition are met it shd show Grade 10 but output is Both,, "Grade 10 and Grade 6. infact it shd be only Grade 10........

here is the code i have used for it..
CHECK MY CODE AND PLEASE GUIDE ME...

Code:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <ctype.h>
main()
{
clrscr();
int h,t;
float c;
printf("Enter The Hardness , Tensile Strength And Carbon Content");
scanf("%d%d%f",&h,&t,&c);
/* For Grade 10 */
if((h>50 && c<0.7 && t>5600))
   printf("The Grade is 10");
/* For Grade 9 */
if((h>50 && c<0.7 && t<5600))
   printf("The Grade is 9");
/* For Grade 8*/
if((h<50 && c<0.7 && t>5600))
   printf("The Grade is 8");
/* For Grade 7 */
if((h>50 && c>0.7 && t>5600))
   printf("The Grade is 7");
/* For Grade 6 */
if((h>50) ||(c<0.7)||(t>5600))
   printf("The Grade is 6");

else
printf(" The Grade is 5");

getch();
}