This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
pry
/
uva-problems
mirror of
https://github.com/prydt/uva-problems
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Finished Problem 11172 - Relational Operator
master
pry
1 year ago
parent
6b1ea5c3e7
commit
0fed8dd6e8
1 changed files
with
20 additions
and
0 deletions
Split View
Show Diff Stats
20
0
11172/main.cpp
+ 20
- 0
11172/main.cpp
View File
@@ -0,0 +1,20 @@
#include <stdio.h>
using namespace std;
int main()
{
int t, a, b;
scanf("%d", &t);
while(t--)
{
scanf("%d %d", &a, &b);
if(a > b)
printf(">\n");
else if(a < b)
printf("<\n");
else if(a >= b)
printf("=\n");
}
}
Write
Preview
Loading…
Cancel
Save