C Program to find largest and smallest value from three numbers
#include
#include
void main()
{
int a,b,c;
clrscr();
printf("\nEnter the numbers:");
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c)
printf("\nLargest value: %d",a);
else if(b>a && b>c)
printf("\nLargest value: %d",b);
else if(c>a && c>b)
printf("\nLargest value: %d",c);
if(aprintf("\nSmallest value: %d",a);
else if(bprintf("\nSmallest value: %d",b);
else if(cprintf("\nSmallest value: %d",c);
getch();
}
***********OUTPUT**********
Enter the numbers:
65
85
25
Largest value: 85
Smallest value: 25
Shopping In MUMBAI
Are you searching for Discounts, offers, sale in Mumbai ? You are in the right place. MUMBAI, a shopping haven, has no dearth of great discounts and sales. This blog features the best MUMBAI shopping offers, sale, discounts and deals and bargains CURRENTLY GOING on in Mumbai plus a few free things thrown in on top.
Don't wait for it because once they are gone, they are gone. Hurry!..By clicking the "Like" button you will receive a daily update of discounts, sale, offers going on in Mumbai. LIKE IT.... SHARE IT...njoY.
Wednesday, December 31, 2008
C Program to find largest and smallest value from three numbers
Posted by ars at 11:55 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment