Skip to content

Instantly share code, notes, and snippets.

@ugandapinik
Created July 19, 2016 12:36
Show Gist options
  • Save ugandapinik/df95c73e7a017c1917e5a66d36e72fe3 to your computer and use it in GitHub Desktop.
Save ugandapinik/df95c73e7a017c1917e5a66d36e72fe3 to your computer and use it in GitHub Desktop.
C program to accept two integers and check if they are equal
#include <stdio.h>
int main() {
int m, n;
printf("Enter num1 : ");
scanf("%d", &m);
printf("Enter num2 : ");
scanf("%d", &n);
if (m == n) {
printf("They are equal");
}
else {
printf("Not Equal");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment