Check Both Numbers are Equal if else

By | March 7, 2020

Check Both Numbers are Equal if else

#include<stdio.h>

int main()
{
   int num1, num2;
   printf("Enter First Number=");
   scanf("%d", &num1);
   printf("Enter 2nd Number=");
   scanf("%d", &num2);
   if(num1 == num2)
     printf("First Number %d is equal to Second Number %d ", num1,num2);
   else
     printf("First Number %d is not equal to Second Number %d ", num1,num2);
   
   return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *