from what I understand of this this code I created using if else if statement (assignment) seems correct to me.
but for some reason it is not printing L or
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)
l = x;
else if (y>z)
l = y;
else if (z>x)
l = z;
else
printf("The large number is %d", l);
getch();
return(0);
}