Ejercicios del 1 al 6 del cap 4 bloque 4

This commit is contained in:
2024-10-24 14:50:25 +02:00
parent 48c8a85140
commit b92849edc3
7 changed files with 175 additions and 0 deletions

View File

@@ -8,6 +8,11 @@ public class Utils {
Scanner sc = new Scanner(System.in);
return sc.nextInt();
}
public static String solicitarStringScanner(String pregunta) {
System.out.println(pregunta);
Scanner sc = new Scanner(System.in);
return sc.nextLine();
}
public static double generarNumAleatorio(int multiplicador) {
return Math.random() * multiplicador;
}