C program to find the given two numbers are equal or not.

 

C program

C PROGRAM

C program to find the given two numbers are equal or not

#include<stdio.h>
#include<conio.h>
void main()
{
  int x,y;
  clrscr();
  printf("enter the values for X and Y\n");
  scanf("%d%d",&x,&y);
  if(x-y==0)
  printf("the given numbers are equal");
  else
  printf("the given numbers are not equal");
  getch();
  }

OUTPUT :

enter the values for X and Y
48832800054
48832700054
the given numbers are not equal



No comments:

Post a Comment




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.