We Post only the Best Stuff

C Program to compare 3 Numbers

Previous Program »» C Program to compare 2 Numbers

In this tutorial, we will learn how to compare 3 numbers and tell which of the 3 is biggest. This is advanced version of the previous program. The coding for this C Program goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter any 3 numbers: ");
scanf("%d %d %d",&a,&b,&c);
if (a>b && a>c);
{
printf("a is big");
}
else if (b>a && b>c)
{
printf ("b is big");
}
else
{
printf ("c is big");
}
getch();
}

Next Program »» C Program to find out whether number is even or odd

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated
Support : Contact Us | Privacy Policy | Site Map
Copyright © 2013. Tech Jatt - All Rights Reserved
Site Design by Nitin Kundu Licensed to Tech Jatt
Proudly powered by Blogger