Check if two numbers are equivalent - C Program

C program to check equivalence of two numbers using if statement.

Solution:

#include<stdio.h>
int main()
{
     int num1,num2;
     printf("\tEnter Two Numbers\n");
     printf("---------------------------\n");
     printf("Enter First Number  : ");
     scanf("%d", &num1);
     printf("\nEnter Second Number : ");
     scanf("%d",&num2);
     printf("---------------------------\n");
     if(num1==num2)
     {
          printf("Numbers are Equivalent.");
     }
     return 0;
}


Output:

equivalent number