C Programming : To check the equality of two given number

Posted on:
tags: , ,

/* This is a 'C' program.
This program will check the equality of two given number.*/
#include<stdio.h>
#include<conio.h> //header files
void main()
{
int a,b;//variables
clrscr();
printf("\n Enter two number using space between them:");
scanf("%d %d",&a,&b);
if(a==b)//this statement will check the equality of two given number.
printf("\n The two numbers you have entered are EQUAL !!!");
else
printf("\n The two numbers you have entered are NOT EQUAL !!!");
getch();
}

No comments:

Post a Comment

< >