Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Kanan Asgarli
- https://www.e-olymp.com/az/problems/266
- */
- #include <iostream>
- #include <algorithm>
- using namespace std;
- string num1, num2;
- int l1, l2, fl;
- char ans;
- int main()
- {
- cin>>num1>>num2;
- l1 = num1.length();
- l2 = num2.length();
- if(l1 > l2)
- cout<<">"<<endl;
- else if(l1 < l2)
- cout<<"<"<<endl;
- else{
- if(num1 > num2)
- cout<<">"<<endl;
- else if(num1 < num2)
- cout<<"<"<<endl;
- else
- cout<<"="<<endl;
- }
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment