返回列表 發帖

501-陣列計算

  1. import java.util.Scanner;
  2. public class JPA05 {
  3.     static Scanner k = new Scanner(System.in);
  4.     public static void main(String args[]) {
  5.         
  6.         int n = 0;
  7.         double sum = 0;
  8.         int data[] = new int[10];

  9.         System.out.println("請輸入10個整數:");
  10.         for (int i=0;i<data.length;i++)
  11.         {
  12.                
  13.                 if ()
  14.                 {

  15.                 }
  16.         }



  17.     }
  18. }
複製代碼
Stay hungry,
Stay foolish.

返回列表