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


class Main {
    public static void main(String[] args) {
       System.out.println("Biblioteca");

        Scanner tecl = new Scanner(System.in);

        int[] prestamos = {8, 12, 6, 10, 14};

        int total = 0;

        for (int i = 0; i < prestamos.length; i++) {
            total += prestamos[i];
        }

        double promedio = (double) total / prestamos.length;

        System.out.println("************");
        System.out.println("Total semanal de préstamos: " + total);
        System.out.println("Promedio diario de préstamos: " + promedio);
    }
}

Embed on website

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