1 solutions
-
0
C :
#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if(a>b){ printf("%d>%d",a,b); } if(a<b){ printf("%d<%d",a,b); } return 0; }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
Information
- ID
- 16369
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By