import java.util.Scanner;
public class work {
public static void main( String[] args )
{
Scanner keyboard = new Scanner (System.in);
System.out.println("請輸入三個數值");
double [] matrix = new double [3];
double maximum = 0;
public class work {
public static void main( String[] args )
{
Scanner keyboard = new Scanner (System.in);
System.out.println("請輸入三個數值");
double [] matrix = new double [3];
double maximum = 0;
for (int i = 0; i <>
{ matrix[i] = keyboard.nextDouble();} f
or (int i = 0; i <>
{ if (maximum < maximum =" matrix[i];">
System.out.println("最大值:" + maximum);
}
}
沒有留言:
張貼留言