google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a program to find the equality of two numbers. - 2nd puc computer science

Write a program to find the equality of two numbers.

Write a program to find the equality of two numbers.

#include<stdio.h>

#include<conio.h>

void main()

{

int x,y;

clrscr();

printf("Enter two numbers\n");

scanf("%d%d",&x,&y);

if(x==y)

printf("x and y are equal");

else

printf("x and y are not equal");

getch();

}

Output:


run 1:

Enter two numbers

4

7

x and y are not equal


run 2:

Enter two numbers

5                                                                             

5                                                                              

x and y are equal                         

Write a program to find the equality of two numbers. Write a program to find the equality of two numbers. Reviewed by Vision Academy on December 07, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.