Write a c program to find the largest of n numbers.

#include<stdio.h>
#include<conio.h>
  main()
{
  int x,y,z;
  clrscr();
  printf("\n enter the values of x,y and z');
  scanf("\n %d%d%d',&x,&y,&z);
  if((x>y)&&(x>z))
{
  printf("\n x=%d is  largest",x);
}
  else
{
  if((y>x)&&(y>z))
{
  printf("\n y=%d is  largest",y);
}
  else
{
  if((z>x)&&(z>y))
{
  printf("\n z=%d is  largest",z);
}
  else
{
  printf("\n x=%d,y=%d,z=%d all same",x,y,z);
}
}
  return (0);
}

 output:-
 x=50,y=77,z=30

 y=77 is  largest