asgarlikanan

https://www.e-olymp.com/az/problems/266

Aug 6th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 0.53 KB | None | 0 0
  1. /*
  2.     Author: Kanan Asgarli
  3.     https://www.e-olymp.com/az/problems/266
  4. */
  5. #include <iostream>
  6. #include <algorithm>
  7. using namespace std;
  8. string num1, num2;
  9. int l1, l2, fl;
  10. char ans;
  11. int main()
  12. {
  13.     cin>>num1>>num2;
  14.     l1 = num1.length();
  15.     l2 = num2.length();
  16.     if(l1 > l2)
  17.         cout<<">"<<endl;
  18.     else if(l1 < l2)
  19.         cout<<"<"<<endl;
  20.     else{
  21.         if(num1 > num2)
  22.             cout<<">"<<endl;
  23.         else if(num1 < num2)
  24.             cout<<"<"<<endl;
  25.         else
  26.             cout<<"="<<endl;
  27.     }
  28.     system("pause");
  29.     return 0;
  30. }
Add Comment
Please, Sign In to add comment