import java.util.*;
import java.lang.*;
import java.io.*;

class Main {
    public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
       double[] labubu = new double[9];
        double soma = 0;
        for(int i=0; i<9; i++){
            labubu[i] = teclado.nextDouble();
            soma = soma + labubu[i];
        }
            System.out.printf("A soma dos seus valores é %.2f%n", soma);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: