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

005 Int

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:

Played 4

About this activity

tipo de datos int

Created by

Spain

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
005 Int
 

Fill in the Blanks

005 IntOnline version

tipo de datos int

by joan puig
1

local datos reserve procedimiento variable declararla globales memoria int tipo enteros global funciones definimos rango tipo

El tipo Int . En una variable de este se almacenan números ( sin decimales ) . El de valores que admite es - 32767 a 32767 . Cuando una variable lo que estamos haciendo es decirle al compilador que nos una zona de la para almacenar de tipo . Para guardarla necesitaremos 16 bits de la memoria del ordenador ( 216 = 32767 ) . Para poder usar una variable primero hay que ( definirla ) . Hay que decirle al compilador que queremos crear una y hay que indicarle de qué . Por ejemplo :
int numero ;
Esto hace que declaremos una variable llamada numero que va a contener un número entero .

¿ Pero dónde se declaran las variables ?

Tenemos dos posibilidades , una es declararla como y otra como . Por ahora vamos a decir que global es aquella variable que se declara fuera de la función main y local la que se declara dentro :

Variable Global
#include

int x ;

int main ( )
{
}

Variable Local

#include

int main ( )
{
int x ;
}




La diferencia práctica es que las variables se pueden usar en cualquier procedimiento . Las variables locales sólo pueden usarse en el en el que se declaran . Como por ahora sólo tenemos el procedimiento ( o función , o rutina , o subrutina , como prefieras ) main esto no debe preocuparnos mucho por ahora . Cuando estudiemos cómo hacer un programa con más aparte de main volveremos sobre el tema . Sin embargo debes saber que es buena costumbre usar variables locales que globales .

Are you sure you want to leave the page?

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