Saturday 10 November 2012

C Program to find the largest number between given three numbers

By
Write a C Program to find the largest number between given three numbers.

 C Program to find the largest number between given three numbers
*********************************************************
www.flintgroups.com
*********************************************************
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("|****************************|");
printf("\nwww.flintgroups.com\n");
printf("|****************************|\n");
printf("Enter three Integer Numbers");
scanf("%d%d%d",&a,&b,&c);
if((a>b) && (a>c))
{
printf("\nThe Largest Numbers is %d",a);
}
else
{
if (b>c)
printf("\nThe Largest Numbers is %d",b);
else
printf("\nThe Largest Numbers is %d",c);
}
getch();
}


The Sample output for this program is given below.

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Labels