Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package biggest;
- import java.util.Scanner;
- /**
- *
- * @author cse
- */
- public class Biggest {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- Scanner sc;
- sc= new Scanner(System.in);
- int n = sc.nextInt();
- for(int j=1; j<=n; j++)
- {
- for(int i=1; i<=3; i++)
- {
- int a=sc.nextInt();
- int b=sc.nextInt();
- int c=sc.nextInt();
- if(a>b)
- System.out.println(a);
- else
- System.out.println(b);
- if(c>a)
- System.out.println(c);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement