Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- char str1[] = "Ivanov";
- char str2[] = "Petrov";
- int k, m;
- k = strlen(str1);
- m = strlen(str2);
- if (k > m)
- cout << "Ivanov>Petrov"<<endl;
- if (k < m)
- cout << "Ivanov<Petrov"<<endl;
- else cout << "Ivanov==Petrov"<<endl;
- system("pause");
- }
Add Comment
Please, Sign In to add comment