Answer to Question #285112 in C++ for Lex

Question #285112

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.

1
Expert's answer
2022-01-06T02:01:07-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