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


infinitynotes00

Comments

Popular posts from this blog

Write a program to calculate a students result based on two examinations, 1 sports event, and 3 activities conducted. The weightage of activities= 30%, sports= 20% , and examinations= 50%.

Determine the intensity of shear of an oil having viscosity= 1 poise. The oil is used for lubricating the clearance between a shaft of diameter 10 cm and its journal bearing. The clearance is 1.5mm and the shaft rotates at 150 r.p.m.