3969 - 判断两数大小

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

题目输入

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;
}
时间限制 1 秒
内存限制 128 MB
讨论 统计
上一题 下一题