# c program to find biggest of three numbers

list of c programs below: c program to find biggest of three numbers using functions, c program to find biggest of three numbers using conditional operator if else, c program to find biggest of three numbers in an array, c program to find biggest of three numbers using  ternary operator, c program to find biggest of three numbers using  pointers.

## c program to find biggest of three numbers using functions

c program to find biggest of three numbers using functions

#include <stdio.h>
#include <conio.h>
main()
{
int x,y,z;
clrscr();
printf(” OUTPUT: c program to find largest of three numbers using functions \n \n”);
printf(“enter any three numbers \n”);
scanf(%d%d%d\n”,&x, &y, &z);
Find_biggest(x,y,z);
getch();
}

void Find_biggest(int a, int b, int c)
{
if ((a>b) && (a>c))
printf(“the largest number  is a i.e. %d”, a)
else if b>c
printf(“the largest number  is b i.e. %d”, b)
else
printf(“the largest number  is c i.e. %d”, c)
}

## c program to find biggest of three numbers using conditional operator if else

c program to find biggest of three numbers conditional operator if else

#include <stdio.h>
#include <conio.h>
main()
{
int a,b,c;
clrscr();
printf(“OUTPUT: c program to find largest of three numbers using conditional operator “);
printf(“enter any three numbers \n”);
scanf(%d%d%d\n”,&a, &b, &c);
if ((a>b) && (a>c))
printf(“the largest number  is a i.e. %d”, a)
else if b>c
printf(“the largest number is b i.e. %d”, b)
else
printf(“the largest number is c i.e. %d”, c)
}

## c program to find biggest of three numbers in an array

c program to find biggest of three numbers in an array

#include <stdio.h>
#include <conio.h>
main()
{
int a;
clrscr();
printf(“OUTPUT: c program to find largest of three numbers in an array”);
int big=0;
for(i=0;i<3;i++)
{
printf(“enter number %d :”, i+1  “);
scanf(%d \n”,&a[i]);
if (a[i]>big)
big=a[i]
}
printf(“the largest number  is a i.e. %d”, big)
}

## c program to find biggest of three numbers using ternary operator

c program to find biggest of three numbers using ternary operator

#include <stdio.h>
#include <conio.h>
main()
{
int num1,num2,num3,largest;
clrscr();
printf(“OUTPUT: c program to find largest of three numbers using ternary operator”);
printf(“enter any three numbers \n”);
scanf(%d%d%d\n”,&num1, &num2, &num3);
largest = num1 > num2 ? (num1 > num3 ? num1 : num3) : (num2 > num3 ? num2 : num3) ;
printf(“the largest number  is a i.e. %d”, largest)
}

## c program to find biggest of three numbers using pointers

c program to find biggest of three numbers using pointers

#include <stdio.h>
#include <conio.h>
main()
{
int *x,*y,*z;
clrscr();
printf(” OUTPUT: c program to find largest of three numbers using pointers \n \n”);
printf(“enter any three numbers \n”);
scanf(%d%d%d\n”,x, y, z);
Find_biggest(x,y,z);
getch();
}

void Find_biggest(int *a, int *b, int *c)
{
if ((*a>*b) && (*a>*c))
printf(“the largest number  is a i.e. %d”, *a)
else if( *b>*c)
printf(“the largest number  is b i.e. %d”, *b)
else
printf(“the largest number  is c i.e. %d”, *c)
}