Answer to Question #285061 in C++ for Lex

Question #285061



Instructions:




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.




Output




5 5



Equal




1
Expert's answer
2022-01-05T11:38:04-0500




#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog