Write a program to initialize an array to the first 10 prime numbers: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29. Use a for-each loop to sum the values in the array.
確定! 回上一頁