C Program to find largest of 3 numbers 

C Program to find largest (biggest or maximum or greatest ) among 3 numbers

We can write a C Program to find largest (biggest or maximum or greatest ) among 3 numbers.   For example:  if the given input  numbers are 35, -56, 289, then  the largest (biggest or maximum or greatest ) among 3 numbers is 289. The below given C program will find the largest (biggest or maximum or greatest ) of 3 numbers.  Kindly check out the program to find largest of 3 numbers

Program to find largest of 3 numbers 


    #include<stdio.h>
    int main(){
                   int x, y, z;
                   printf(" Enter three Integer numbers for x, y, z : ");
                   scanf("%d %d %d", &x, &y, &z);
                   if((x > y)&&(x > z))
                   printf("\n x is greatest : %d",x);
                   else
                   {
                   if(y > z)
                   printf("\n y is greatest : %d",y);
                   else
                   printf("\n z is greatest : %d",z);
                   }
    return(0);
    }

  


Sample Output:

                       Enter three Integer numbers for x, y, z : 56   346   82
                       y is greatest : 346

Other Related C Programs :


* C Program to find whether the given number is Odd or Even

* C Program to find the Sum of Odd Digits

* C Program to find the Sum of Even Digits

* C Program to find the Sum of Even and Odd Digits,

* C Program to Display Odd digits

* C Program to Display even digits

* C Program to Display Odd Numbers,

* C Program to Display Even Numbers,

* C Program to Check whether the given number is Armstrong number

* C Program to display the Armstrong numbers in Range

* C Program to display the Armstrong numbers between 1 and 1000

* C Program to check perfect number, perfect numbers in range

* C Program to Check Prime number, Prime numbers between 1 and 100

* C Program to display the Prime numbers in a Range

* C Program to display the Sum of Prime numbers

* C Program to Check Strong number

* C Program to display the Strong number in Range

* C Program to Check whether the given number is polindrome number or not

* C Program to Check polindrome number using for loop

* C Program to Check polindrome number using Recursion

* C Program to  check whether the given string is polindrome or not

* C Program to find the Roots of Quadratic equation

* C Program to display Fibonacci Series

* C Program to display the Fibonacci Series using an array

* C Program to display the Fibonacci Series using while loop

* C Program to find the Sum of Fibonacci Series, Factorial of Number

* C Program to find the Factorial without using Recursion

* C Program to find the Factorial using Pointers

* C Program to find the Factorial using Function

Bookmark and Share