#include <stdio.h>
int main ()
{
int x, y, z;
printf ("Enter three number \n");
scanf ("%d %d %d", &x, &y, &z);
if (x>y) // first condition
{// The code of this block will run when the first condition is true
if (x>z) // second condition
printf ("Greater value is: %d", x);
else
printf ("Greater value is: %d", z);
}
else
{ // If the first condition is False, then the code of this block will run.
if (y>z)
printf ("Greater value is: %d", y);
else
printf ("Greater value is: %d", z);
}
return 0;
}