Program to check Two numbers are equal are not

#include<conio.h>

#include<stdio.h>

void main()

{

int a,b,c;

clrscr();

printf("%d%d",&a,&b);

c=a-b;

if(c==0)

{

printf("A and B are equal");

}

else

{

printf("A and B are not equal");

}

getch();

}

Output

Enter the number A and B=3,4

A and B are not equal

Enter the number A and B=4,4

A and B are equal

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online