Search This Blog

Translate

c program to find largest of three numbers

c program to find largest of three numbers,c program to find largest of three numbers using functions,c program to find largest of three numbers using conditional operator,c program to find largest of three numbers using nested if,c program to find largest of three numbers using if else,c program to find greatest of three numbers,c program to find greatest of three numbers using ternary operator,

#include "stdio.h"
#include "conio.h"
void main()
{
int a,b,c;
clrscr();
printf("\n\nEnter first number=");
scanf("%d",&a);
printf("\n\nEnter second number=");
scanf("%d",&b);
printf("\n\nEnter third number=");
scanf("%d",&c);
if(a>b&&a>c)
{
printf("\n\n\n%d is maximum number.",a);
}
else
{
if(b>c)
{
printf("\n\n\n%d is maximum number.");
}
else
{
printf("\n\n\n%d is maximum number.");
}
}
getch();
}




c program to find largest of three numbers,c program to find largest of three numbers using functions,c program to find largest of three numbers using conditional operator,c program to find largest of three numbers using nested if,c program to find largest of three numbers using if else,c program to find greatest of three numbers,c program to find greatest of three numbers using ternary operator,

C Program example List

Google+ Badge