Advertisement
Guest User

Copmarare

a guest
Nov 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <cstring>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {char s1[100],s2[100];
  9.  
  10. gets(s1);
  11. gets(s2);
  12. if(strcmp(s1,s2)==NULL)
  13. cout<<"s1=s2";
  14. else
  15. if(strcmp(s1,s2)>NULL)
  16. cout<<"s1>s2";
  17. else
  18. cout<<"s1<s2";
  19.  
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement