返回列表 發帖
  1. import java.util.Scanner;
  2. public class Ch01 {
  3.     public static void main(String[] args) {
  4.         Scanner s=new Scanner(System.in);
  5.         int a=s.nextInt();
  6.         int b=s.nextInt();
  7.         int c=s.nextInt();
  8.         int d=s.nextInt();
  9.         int e=s.nextInt();
  10.         int f=s.nextInt();      
  11.         System.out.printf("%10d %10d %10d\n%10d %10d %10d\n", a, b, c, d, e, f);
  12.         System.out.printf("%-10d %-10d %-10d\n%-10d %-10d %-10d\n", a, b, c, d, e, f);
  13.     }
  14. }
複製代碼

TOP

返回列表