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

Operadores aritméticos en C#

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:

Operadores aritméticos en C#

Fill in the Blanks

Played 0

About this activity

Práctica de operadores en C#.

Created by

Mexico

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
Operadores aritméticos en C#
 

Fill in the Blanks

Operadores aritméticos en C#Online version

Práctica de operadores en C#.

by Gabriel Barrón Rodríguez
1

En C# , los realizan operaciones entre dos operandos : x + y es , x - y es , x * y es multiplicación , y x / y es división . También existe x % y para obtener el resto . Existen operadores unarios que trabajan sobre un único operando , como + x y - x para cambiar el signo , o + + x y - - x para o decrementar . Es importante considerar el tipo de datos para evitar pérdidas de precisión y comprender la de las operaciones .

2

Utilizando las variables iniciales dadas , y respetando la precedencia de operadores , calcula el valor final de las variables resultadoBinario y resultadoUnario . Vea anotando en tu cuaderno sobre la declaración de las variables y su valor
int a = 10 ;
int b = 3 ;
double c = 5 . 0 ;

/ / Escribe el código C# y determina el resultado :
int resultadoBinario = ( a * b ) + ( a / b ) - ( int ) ( c % 3 ) ;
/ / NOTA : Se realiza un casting ( int ) para el módulo ya que ( c % 3 ) es un double .
resultadoBinario =

3

/ / Escribe el código C# y determina el resultado final :
int a = 10 ;
int resultadoUnario = a + + ;
a + = 2 ;
resultadoUnario + = - - a ;
resultadoUnario - = a ;

/ / ¿ Cuál es el valor final de 'a' y 'resultadoUnario' ?

a =
resultadoUnario =

4

/ / Escribe el código C# y determina los resultados finales :
int total = 10 ;
int descuento = 5 ;
int factor = 2 ;

/ / Paso 1 : Módulo y Asignación
total % = descuento ;

/ / Paso 2 : Precedencia ( Multiplicación y Suma )
descuento = total * factor + 8 ;

/ / Paso 3 : División y Asignación
total / = descuento ;

/ / ¿ Cuál es el valor final de 'total' y 'descuento' ?
Total =
Descuento =

Are you sure you want to leave the page?

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