int entero = 15;
long num_largo = 1000000;
float decimal = 12.5;
double decimal_db = 12.5555;
char letra = 'B';
int pepe;
int a=1;
void setup() {
Serial.begin(115200);
int num = 2;
if (true){
while(num<11){
Serial.println(num);
num = 2 + num;
}
}else{}
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}
matrices
/*
variables: texto, número, dato, objetos
Unidad Básica: Bit (0 1) => byte (8 Bits)
Tipo de datos: Entero (int), Entero largo (long), Decimal simple (float), Decimal doble (double), caracter (char)
Funciones: sqrt(), etc
condicionales:
if()
for()
while()
switch()
case_
break;
int Contador = 5;
switch(Contador){
case 1:
Serial.println("El numero es 1");
break;
case 2:
Serial.println("El numero es 2");
break;
case 3:
Serial.println("El numero es 3");
break;
default:
Serial.println("El numero es ");
Serial.println(Contador);
}
}
if (entero == 1){
pepe = 2;
}else{
pepe = 5;
}
Serial.println(pepe);
while(entero <= 17){
entero++;
Serial.println(entero);
}
for(int a=1; a<9; a++){
Serial.println(a);
}
*/