New game
Download
Get Academic Plan
Share game
Fill in the Blanks
Fill in the Blanks

Actividad de refuerzo U2

Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Actividad de refuerzo U2

Fill in the Blanks

Played 0

About this activity

Actividad de refuerzo en la pondremos a prueba que tanto sabes de la estrucrura de un programa de programacion con los diferentes tipos de condicionales.

Created by

Colombia

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Actividad de refuerzo U2
 

Fill in the Blanks

Actividad de refuerzo U2Online version

Actividad de refuerzo en la pondremos a prueba que tanto sabes de la estrucrura de un programa de programacion con los diferentes tipos de condicionales.

by DENISSE SOFIA HERNANDEZ DIAZ
1

if cero int

import javax . swing . JOptionPane ;

public class NumeroSigno {
public static void main ( String [ ] args ) {
String entrada = JOptionPane . showInputDialog ( " Ingrese un número : " ) ;
numero = Integer . parseInt ( entrada ) ;

if ( numero > 0 ) {
JOptionPane . showMessageDialog ( null , " El número es positivo . " ) ;
} else ( numero < 0 ) {
JOptionPane . showMessageDialog ( null , " El número es negativo . " ) ;
} else {
JOptionPane . showMessageDialog ( null , " El número es . " ) ;
}
}
}

2

mayor else if int si el num2 num2

import javax . swing . JOptionPane ;

public class MayorDeDos {
public static void main ( String [ ] args ) {
String entrada1 = JOptionPane . showInputDialog ( " Ingrese primer número : " ) ;
String entrada2 = JOptionPane . showInputDialog ( " Ingrese el segundo número : " ) ;

num1 = Integer . parseInt ( entrada1 ) ;
int = Integer . parseInt ( entrada2 ) ;

if ( num1 > ) {
JOptionPane . showMessageDialog ( null , " El número mayor es : " + num1 ) ;
} ( num2 > num1 ) {
JOptionPane . showMessageDialog ( null , " El número es : " + num2 ) ;
} else {
JOptionPane . showMessageDialog ( null , " Ambos números son iguales . " ) ;
}
}
}

3

JOptionPane default resultado Resultado showMessageDialog class Ingrese if case 4 String num1

import javax . swing . JOptionPane ;

public CalculadoraBasica {
public static void main ( String [ ] args ) {
/ / Mostrar menú de opciones
String opcionTexto = JOptionPane . showInputDialog (
" Seleccione una operación : \ n " +
" 1 . Suma \ n " +
" 2 . Resta \ n " +
" 3 . Multiplicación \ n " +
" 4 . División "
) ;

int opcion = Integer . parseInt ( opcionTexto ) ;

/ / Pedir los dos números
num1Texto = JOptionPane . showInputDialog ( " Ingrese el primer número : " ) ;
String num2Texto = JOptionPane . showInputDialog ( " el segundo número : " ) ;

double num1 = Double . parseDouble ( num1Texto ) ;
double num2 = Double . parseDouble ( num2Texto ) ;
double resultado ;

switch ( opcion ) {
case 1 :
= num1 + num2 ;
JOptionPane . showMessageDialog ( null , " Resultado de la suma : " + resultado ) ;
break ;
case 2 :
resultado = - num2 ;
JOptionPane . showMessageDialog ( null , " Resultado de la resta : " + resultado ) ;
break ;
3 :
resultado = num1 * num2 ;
JOptionPane . showMessageDialog ( null , " de la multiplicación : " + resultado ) ;
break ;
case :
( num2 ! = 0 ) {
resultado = num1 / num2 ;
JOptionPane . ( null , " Resultado de la división : " + resultado ) ;
} else {
JOptionPane . showMessageDialog ( null , " Error : no se puede dividir entre cero . " ) ;
}
break ;
:
. showMessageDialog ( null , " Opción no válida . " ) ;
}
}
}

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.