It seems Tibo-88 suggestion worked for me thanks and thanks for all the help guys
so here is code redone
so I tried calculating true or false and saw that "z > x" and "y > x" was wrong.
Code:
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
int x,y,z,l;
printf("Enter value for x: ");
scanf("%d",&x);
printf("Enter value for y: ");
scanf("%d",&y);
printf("Enter value for z: ");
scanf("%d",&z);
if (x>y)
printf("The large number is %d", x);
else if (z>y)
printf("The large number is %d", z);
else if (y>x)
printf("The large number is %d", y);
else
printf("All values are the same %d", l);
getch();
return(0);
}