This file contains hidden or 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; |
This file contains hidden or 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; | |
/** | |
* | |
* @author </> Código Root >_ | |
*/ | |
public class TablaConWhile { | |
public static void main (String [] args){ | |
} | |
} |
This file contains hidden or 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
int Multiplicando ; | |
System.out.println("¿Que tabla desea Realizar?"); | |
Scanner valor1 = new Scanner(System.in); | |
Multiplicando = valor1.nextInt(); |
This file contains hidden or 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
int multiplicador = 1; | |
while(multiplicador <=10){ | |
System.out.println(Multiplicando + " X " + multiplicador + " = " + Multiplicando * multiplicador ); | |
multiplicador++; | |
} |
This file contains hidden or 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; | |
/** | |
* | |
* @author </> Código Root >_ | |
*/ | |
public class TablaConWhile { | |
public static void main (String [] args){ | |
int Multiplicando ; | |
This file contains hidden or 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
/* | |
* author: Código Root </> | |
* Mi blog: https://codigoroot.net/blog | |
*/ | |
import java.util.Scanner; | |
public class Operaciones { | |
public static void main (String[] args){ |
This file contains hidden or 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
System.out.println("Introduzca el primer valor:"); | |
Scanner Numero = new Scanner(System.in); | |
int numero1=Numero.nextInt(); | |
System.out.println("Introduzca el segundo valor:"); | |
int numero2 = Numero.nextInt(); |
This file contains hidden or 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
int suma= numero1 + numero2; | |
int resta = (numero1 - numero2); | |
int multiplicación = numero1 * numero2; | |
double num1double = numero1 ; | |
double num2double = numero2; | |
double división = num1double / num2double; | |
int modulo = numero1 % numero2; |
This file contains hidden or 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
double num1double = numero1 ; | |
double num2double = numero2; | |
double división = num1double / num2double; |
This file contains hidden or 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
System.out.println("Suma: " + suma); | |
System.out.println("Resta: " + resta ); | |
System.out.println("Multiplicación: " + multiplicación ); | |
System.out.println("División: " + división ); | |
System.out.println("Modulo: " + modulo ); |
OlderNewer