Skip to content

Instantly share code, notes, and snippets.

View JoseLuisGardunoArrieta's full-sized avatar
🏠
Working from home

Gary Core JoseLuisGardunoArrieta

🏠
Working from home
View GitHub Profile
@JoseLuisGardunoArrieta
JoseLuisGardunoArrieta / Codigo5.java
Created November 29, 2024 16:30 — forked from eduardojesus12/Codigo5.java
Código de otros 5
public class Codigo5 {
Scanner s = new Scanner();
System.out.print("Introduzca un número: ');
String ni = s.nextLine();
int c = ni;
int afo = 0;
int noAfo = 0;
@JoseLuisGardunoArrieta
JoseLuisGardunoArrieta / Codigo6.java
Created November 29, 2024 16:30 — forked from eduardojesus12/Codigo6.java
Código de otros 6
public class codigo6 {
int[] n = int[20];
for (int i = 0; i < 20; i+) {
n[i] = (int)(Math.random() * 381) + 20;
System.print(n[i] + " ");
}
System.out.printl("\n¿Qué números quiere resaltar? ");
@JoseLuisGardunoArrieta
JoseLuisGardunoArrieta / Ejercicio4.java
Last active November 29, 2024 19:39 — forked from eduardojesus12/Ejercicio4.java
Trabajar con código de otros 4
package ejerciciosFer4;
import java.util.Scanner; //importo scanner
public class Ejercicio4 {
@SuppressWarnings("resource") // agrego esto desde return
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.print("Turno del jugador 1 (introduzca piedra, papel o tijeras): ");