This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package arbolNavidad; | |
import java.util.Scanner; | |
public class ArbolNavidad { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
int altura=9; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package teclado; | |
import java.util.Scanner; | |
public class Teclado { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
int matriz[][] = new int[6][3]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package temperatura; | |
import java.util.Scanner; | |
public class temperatura { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
String nombre[] = new String[5]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Teclado { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
String vector[] = new String[8]; | |
for (int i = 0; i < vector.length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package teclado; | |
import java.util.Scanner; | |
public class Teclado { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
String dni; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package helloword; | |
import java.util.Scanner; | |
public class HelloWord { | |
public static void main(String[] args) { | |
//llamamos el scanner | |
Scanner scan = new Scanner(System.in); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package helloword; | |
public class HelloWord { | |
public static void main(String[] args) { | |
String categoria= ""; | |
int empleado=3; | |
double salarioBase=0.0; | |
double porcentajeBono=0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Funcion lanzamiento(computador Por Referencia) | |
Dimension ordenador[3] | |
ordenador[1] = "piedra" | |
ordenador[2] = "papel" | |
ordenador[3] = "tijera" | |
ordenado=Aleatorio(1,3) | |
computador= ordenador(ordenado) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Funcion lanzamiento(computador Por Referencia) | |
Dimension ordenador[3] | |
ordenador[1] = "piedra" | |
ordenador[2] = "papel" | |
ordenador[3] = "tijera" | |
ordenado=Aleatorio(1,3) | |
computador= ordenador(ordenado) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algoritmo mcm | |
Definir resultado, maxExponente, i, j Como Entero | |
Dimension lista[5] | |
Dimension listaPrimo[5] | |
listaPrimo[1] <- 2 | |
listaPrimo[2] <- 3 | |
listaPrimo[3] <- 5 |
NewerOlder