Showing posts with label Greater than. Show all posts
Showing posts with label Greater than. Show all posts

Relationship Between Two Numbers

Wednesday, 1 May 2013

We all know that numbers are simple yet complex figures. First thing we understand about numbers is that  they differ from one another when it comes to equality. Every numbers like letters, when combined together they form another kind of figures which may be larger than the other numbers, smaller, they may also be equal or not equal.

Since kindergarten, we are taught how to determine the relationship between two integers/numbers, if it is equal to or not equal to than the other number. So I made a program that is used to determine the relationship between two integers/numbers easily. The program that is shown below is more faster in figuring out the relationship and more useful when teaching your younger ones. Check out the codes below.



#include<stdio.h>
#include<conio.h>

main()
{
 int var1, var2;
 printf("Enter two numbers and I will tell you \n the relationships they satisfy: ");
 scanf("%d%d", &var1, &var2);

 if(var1==var2)
   printf("%d is equal to %d\n", var1, var2);
 else
   printf("%d is not equal to %d\n", var1, var2);  
Related Posts Plugin for WordPress, Blogger...