Input two integers in one line.
Print the two integers in one line, separate them with a space.
Print a string message on a new line, "Equal" if both integers are equal.
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(){
int n1,n2;
scanf("%d %d",&n1,&n2);
if(n1==n2){
printf("Equal\n");
}
else{
printf("NOT Equal\n");
}
getchar();
getchar();
return 0;
}
Comments
Leave a comment