Bob103

1 из строк

Dec 21st, 2015
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. int main()
  5. {
  6. char str1[] = "Ivanov";
  7. char str2[] = "Petrov";
  8. int k, m;
  9. k = strlen(str1);
  10. m = strlen(str2);
  11. if (k > m)
  12. cout << "Ivanov>Petrov"<<endl;
  13. if (k < m)
  14. cout << "Ivanov<Petrov"<<endl;
  15. else cout << "Ivanov==Petrov"<<endl;
  16. system("pause");
  17. }
Add Comment
Please, Sign In to add comment