Author : Jisan
Programming language : Java
Difficulty : Easy
Status : Accepted
Problem number : UVA-11172
http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=2113
Code:
import java.util.*;
public class Uva_11172 {
public static void main (String chayapoth[]){
Scanner input = new Scanner(System.in);
int testcase;
testcase = input.nextInt();
long a;
long b;
while(testcase>0) {
a = input.nextInt();
b = input.nextInt();
if(a < b)
System.out.println("<");
else if (a > b)
System.out.println(">");
else if (a == b)
System.out.println("=");
testcase--;
}
}
}
Programming language : Java
Difficulty : Easy
Status : Accepted
Problem number : UVA-11172
http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=2113
Code:
import java.util.*;
public class Uva_11172 {
public static void main (String chayapoth[]){
Scanner input = new Scanner(System.in);
int testcase;
testcase = input.nextInt();
long a;
long b;
while(testcase>0) {
a = input.nextInt();
b = input.nextInt();
if(a < b)
System.out.println("<");
else if (a > b)
System.out.println(">");
else if (a == b)
System.out.println("=");
testcase--;
}
}
}
No comments:
Post a Comment