- import java.util.Scanner;
- public class JP107 {
- public static void main(String[] args) {
- Scanner s=new Scanner(System.in);
- int a=s.nextInt();
- int b=s.nextInt();
- int c=s.nextInt();
- int d=s.nextInt();
- int e=s.nextInt();
- int f=s.nextInt();
- System.out.printf("%10d %10d %10d\n%10d %10d %10d\n", a, b, c, d, e, f);
- System.out.printf("%-10d %-10d %-10d\n%-10d %-10d %-10d\n", a, b, c, d, e, f);
- }
- }
複製代碼 |