Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ej13;
- import java.util.Scanner;
- public class Ejercicio13 {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int total = 0, vueltas = 0;
- while (vueltas < 10) {
- vueltas++;
- System.out.print("Introduce tu nΓΊmero " + vueltas + ": ");
- total += sc.nextInt();
- }
- System.out.println("La media de tus numeros es: " + total / 10);
- sc.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement