Checks whether the two numbers entered by the user are equal or not in C language

 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

Post a Comment

0 Comments