WAP that checks whether the two numbers entered by the user are equal or not.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter two values:);
scanf("%d%d",&a,&b);
if(a==b)
printf("\n Numbers are equal.");
else
printf("\n Numbers are not equal.");
getch();
}
Output
Enter two values: 10 30
Numbers are not equal


0 Comments