Introduction

This is my blog of programming, I take notes and leave codes of computer science problems I solved here. Be my guest to comment :)

Monday, October 29, 2012

uva 11172 - Relational Operator


Problem link
#include <iostream>
#include <cstdio>
using namespace std;

int main() {
 int nTest;
 cin >> nTest;
 for (int test=1; test<=nTest; test++)
 {
  int a,b;
  cin >> a >> b;
  if (a<b) cout << "<" << endl;
  else if (a>b) cout << ">" << endl;
  else cout << "=" << endl;
 }
 return 0;
}

No comments:

Post a Comment