C Program To Check Two Number Is Equal Or Not

C Program To Check Two Number Is Equal Or Not

Code
// Check Two No Equal Or not...

#include <stdio.h>

int main()
{
    int num1, num2;
    printf("Enter 1st no:\n");
    scanf("%d", &num1);
    printf("Enter 2nd no:\n");
    scanf("%d", &num2);

    if (num1 == num2)
    {
        printf("Equal Number.");
    }
    else
    {
        printf("Not Equal Number.");
    }
    return 0;
}
Output
Enter 1st no:
5
Enter 2nd no:
8
Not Equal Number.

Post a Comment