Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <cstring>
- using namespace std;
- int main()
- {char s1[100],s2[100];
- gets(s1);
- gets(s2);
- if(strcmp(s1,s2)==NULL)
- cout<<"s1=s2";
- else
- if(strcmp(s1,s2)>NULL)
- cout<<"s1>s2";
- else
- cout<<"s1<s2";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement