3969 - 判断两数大小

通过次数

0

提交次数

0

时间限制 : 1 秒 内存限制 : 128 MB

输入两个数,判断他们的大小

题目输入

4 5

题目输出

4<5

输入/输出样例

输入格式

6 7

输出格式

6<7

C++解答

#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
    int x,y;
    cin>>x>>y;
    if(x>y)
    {
        cout<<x<<">"<<y<<endl;
    }
    else if (x==y)
    {
        cout<<x<<"="<<y<<endl;
    }
    else
    {
        cout<<x<<"<"<<y<<endl;
    }
    return 0;
}