We Post only the Best Stuff

C Program to compare 2 Numbers

Previous Program »» C Program for specific formula

Here we will learn a program to compare 2 numbers and tell which of the 2 is big.
The Program goes like this:-

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

Next Program »» C Program to compare 3 Numbers

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