Skip to content

Commit e2e538d

Browse files
authored
Merge branch 'mouredev:main' into main
2 parents 21ccc56 + 6291ba3 commit e2e538d

File tree

39 files changed

+4137
-786
lines changed

39 files changed

+4137
-786
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
## Corrección y próximo ejercicio
2929

30-
> #### Lunes 29 de Abril de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/QGJ36ARZ?event=1229569230727413860)** por país y crea un **[recordatorio](https://discord.gg/QGJ36ARZ?event=1229569230727413860)**
30+
> #### Lunes 6 de mayo de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/33hUYsY9?event=12321116576777544390)** por país y crea un **[recordatorio](https://discord.gg/33hUYsY9?event=1232111657677754439)**
3232
3333
## Roadmap
3434

@@ -51,7 +51,8 @@
5151
|14|[FECHAS](./Roadmap/14%20-%20FECHAS/ejercicio.md)|[📝](./Roadmap/14%20-%20FECHAS/python/mouredev.py)|[▶️](https://youtu.be/EQIAhF7NNMI)|[👥](./Roadmap/14%20-%20FECHAS/)
5252
|15|[ASINCRONÍA](./Roadmap/15%20-%20ASINCRONÍA/ejercicio.md)|[📝](./Roadmap/15%20-%20ASINCRONÍA/python/mouredev.py)|[▶️](https://youtu.be/YA8Ssd3AUwA)|[👥](./Roadmap/15%20-%20ASINCRONÍA/)
5353
|16|[EXPRESIONES REGULARES](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/ejercicio.md)|[📝](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/python/mouredev.py)|[▶️](https://youtu.be/0L7IfEF19ow)|[👥](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/)
54-
|17|[ITERACIONES](./Roadmap/17%20-%20ITERACIONES/ejercicio.md)|[🗓️ 29/04/24](https://discord.gg/QGJ36ARZ?event=1229569230727413860)||[👥](./Roadmap/17%20-%20ITERACIONES/)
54+
|17|[ITERACIONES](./Roadmap/17%20-%20ITERACIONES/ejercicio.md)|[📝](./Roadmap/17%20-%20ITERACIONES/python/mouredev.py)|[▶️](https://youtu.be/X1ROaPH_ci8)|[👥](./Roadmap/17%20-%20ITERACIONES/)
55+
|18|[CONJUNTOS](./Roadmap/18%20-%20CONJUNTOS/ejercicio.md)|[🗓️ 06/05/24](https://discord.gg/33hUYsY9?event=1232111657677754439)||[👥](./Roadmap/18%20-%20CONJUNTOS/)
5556

5657
## Instrucciones
5758

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
* Link official https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/index.htm
2+
3+
* Comentario de toda la linea de codigo, solo se colocar el asterisco al inicio
4+
" También se puede utilizar comillas dobles
5+
6+
* Como se crea una variable en ABAP
7+
8+
" Se utiliza la palabra reservada DATA al inicio con el tipo que corresponda
9+
data my_var type string value 'Mi Variable'.
10+
my_var = 'Nuevo valor'. " Al final de cada sentencia se finaliza con punto (.).
11+
12+
" En la nueva sintaxis se crean variables en linea
13+
data(my_var_inline) = 'Variable en linea'.
14+
15+
" Las constantes se crean con la sintaxis CONSTANTS
16+
CONSTANTS MY_CONSTANT type String value 'No Me Cambies'.
17+
18+
" Crear variable tipo entero
19+
data my_int type I.
20+
my_int = 1.
21+
22+
" Crear variable tipo decimal
23+
data my_dec TYPE p LENGTH 8 DECIMALS 2.
24+
my_dec = 10.02
25+
26+
" Como se escriben en pantalla las variables
27+
28+
write:/ myvar.
29+
write:/ my_var_inline.
30+
write:/ my_int.
31+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
3+
web oficial:
4+
https://harbour.github.io/
5+
6+
Distribución utilizada:
7+
https://www.hmgextended.com/
8+
9+
Comentario en varias lineas
10+
11+
*/
12+
13+
// Comentario en una linea
14+
15+
** Comentario en una linea
16+
17+
#define CONSTANTE "Valor no Cambia"
18+
19+
function main()
20+
21+
local Entero, Flotante, Logico
22+
local Cadena
23+
local Fecha
24+
25+
Cadena := "Hola harbour"
26+
Entero := 1
27+
Flotante := 10.25
28+
Fecha := ctod('04-26-2024')
29+
Logico := .T.
30+
Logico := .F.
31+
32+
/*
33+
Se puede crear variables con tipado dinámico sin especificar su alcance, pero no es
34+
recomendable, el compilador identifica el tipo de datos automáticamente .
35+
Es case insensitive
36+
ValorCualquiera := "Cadena" Valorcualquiera := 12 valorCualquiera := 12.45
37+
es la misma variable.
38+
*/
39+
ValorCualquiera := "Cadena"
40+
Valorcualquiera := 12
41+
valorCualquiera := 12.45
42+
43+
? 'Hola Harbour'
44+
45+
return NIL
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
public class FreedAInew {
2+
public static void main(String[] args) {
3+
System.out.println("Hello world!");
4+
//create a comment in the code and place the URL of the official website of the programming language you have selected.
5+
6+
/*These comments are used to add longer explanations or to comment out blocks of code that should not be executed. */
7+
8+
/**
9+
*Within them, a specific syntax is used to describe elements such as classes, methods, variables.
10+
*The comments are processed by the javadoc tool to generate HTML documentation of the code.
11+
*/
12+
13+
//Create a variable (and a constant if the language supports it).
14+
15+
int age = 7; // Integer variable with initial value 7
16+
final int PI=314159; // Approximate value of Pi
17+
18+
19+
20+
21+
//Creates variables representing all the language's primitive data types (text strings, integers, booleans...).
22+
23+
byte weight = 30;
24+
short temperature = 46;
25+
int ageInYears = 7;
26+
long nationalId = 1234567456L;
27+
float pi = 3.141592f;
28+
double e = 2.718281828459045;
29+
boolean isStudent = true;
30+
char symbol = '$';
31+
32+
System.out.println("hi java "+symbol);
33+
}
34+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*APARTADO 1 */
2+
3+
/*https://kotlinlang.org/ */
4+
5+
6+
/*APARTADO 2 */
7+
8+
/*Comentario 1 */
9+
//Comentario 2
10+
11+
12+
/*APARTADO 3 */
13+
14+
var myVariable = "Esto es una variable"
15+
val myConstante = "Esto es una constante"
16+
17+
18+
19+
/*APARTADO 4 */
20+
21+
22+
var numeroEntero: Int = 12
23+
var numeroByte: Byte = 78
24+
var numeroLong: Long = 930273982983
25+
var nuemeroShort: Short = 637
26+
27+
var numeroDouble: Double = 873.8937
28+
var nuemeroFloat: Float = 21.32f
29+
30+
var myCaracter: Char = 'I'
31+
32+
var primerBolean: Boolean = true
33+
var segundoBolean: Boolean = false
34+
35+
36+
37+
38+
39+
/*APARTADO 5 */
40+
41+
fun main(){
42+
println ("¡Hola, Kotlin!")
43+
}
44+
45+
46+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# https://www.python.org/
2+
3+
# Esto es un comentario
4+
5+
'''
6+
Esto es un comentario
7+
de diferentes líneas
8+
que también puede ser útil
9+
'''
10+
11+
primeraVariable ="Esta es mi primera variable en estos retos"
12+
13+
CONSTANTEFAKE= "En python no existen las constantes pero se simulan escribiendo en mayusculas"
14+
15+
# En Python tenemos estos tipos de datos primitivos
16+
17+
numero= 12 # Esto es un dato Int
18+
numeroFlotante= 30,50 # Este es un dato float
19+
texto="Esto es un dato tipo string"
20+
boleano= True # Este es un tipo de dato boleano
21+
22+
print("Hola Python")
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
2+
#include <stdio.h>
3+
4+
int main(void)
5+
{
6+
// Declaracion de variables
7+
int a, b, c, d, i;
8+
9+
// Operadores de asignacion
10+
a = 2;
11+
b = 3;
12+
c = 4;
13+
d = 5;
14+
i = 0;
15+
16+
printf("Asignacion: %d\n", a);
17+
18+
// Operadores aritmeticos
19+
int suma = a+c; // suma
20+
int resta = a-c; // resta
21+
int multiplicacion = c*c; // multiplicacion
22+
int division = c/a; // division
23+
int modulo = c%a; // resto de la division
24+
25+
printf("Suma: %d\n", suma);
26+
printf("Resta: %d\n", resta);
27+
printf("Multiplicacion: %d\n", multiplicacion);
28+
printf("Division: %d\n", division);
29+
printf("Modulo: %d\n", modulo);
30+
31+
// Operadores logicos
32+
int y = a && b; // Realiza una operación AND lógica entre 'a' y 'b'
33+
int o = c || d; // Realiza una operación OR lógica entre 'c' y 'd'
34+
int no = !c; // Realiza una operación NOT lógica en 'c'
35+
36+
printf("And: %d\n", y);
37+
printf("Or: %dn", o);
38+
printf("Not: %d\n", no);
39+
40+
// Operradores de comparacion
41+
int mayor = a > b; // Verifica si 'a' es mayor que 'b'
42+
int menor = c < b; // Verifica si 'c' es menor que 'b'
43+
int mayorIgual = a >= b; // Verifica si 'a' es mayor o igual que 'b'
44+
int menorIgual = c <= d; // Verifica si 'c' es menor o igual que 'd'
45+
int igual = a == c; // Verifica si 'a' es igual a 'c'
46+
int diferente = a != b; // Verifica si 'a' es diferente de 'b'
47+
48+
printf("Mayor que: %d\n", mayor);
49+
printf("Menor que: %d\n", menor);
50+
printf("Mayor o igual que: %d\n", mayorIgual);
51+
printf("Menor o igual que: %d\n", menorIgual);
52+
printf("Igual: %d\n", igual);
53+
printf("No existe %d\n", diferente);
54+
55+
// Operadores de bits
56+
int ybits = a & b; // Realiza una operación AND a nivel de bits entre a y b
57+
int obits = a | b; // Realiza una operación OR a nivel de bits entre a y b
58+
int xorbits = a ^ b; // Realiza una operación XOR a nivel de bits entre a y b
59+
int izq = a << 1; // Desplaza los bits de 'a' una posición a la izquierda
60+
int der = a >> 1; // Desplaza los bits de 'a' una posición a la derecha
61+
62+
printf("AND de bits: %d\n", ybits);
63+
printf("OR de bits: %d\n", obits);
64+
printf("XOR de bits: %d\n", xorbits);
65+
printf("Desplazamiento a la izquierda: %d\n", izq);
66+
printf("Desplazamiento a la derecha: %d\n", der);
67+
68+
69+
// Operadores de incremento
70+
a++; // Incrementa el valor de a en 1
71+
b--; // Decrementa el valor de b en 1
72+
/*Otra manera de usarlos*/
73+
++c; // Incrementa el valor de c en 1 antes de usarlo en una expresion
74+
--d; // Decrementa el valor de d en 1 antes de usarlo en una expresion
75+
76+
77+
// Estructuras de control
78+
79+
// Condicionales
80+
if(a > b){
81+
printf("a es mayor que b\n");
82+
}
83+
else{
84+
printf("a no es mayor que b");
85+
}
86+
87+
// Iteractivas
88+
for (i = 0; i <= 14; i++) {
89+
if (i % 2 == 0 && i != 16 && i % 3 != 0) {
90+
printf("%d\n", i);
91+
}
92+
}
93+
94+
while(d > b){
95+
i++;
96+
d--;
97+
}
98+
printf("El valor final de i es: %d\n", i);
99+
100+
/***DIFICULTAD EXTRA***/
101+
/*Crea un programa que imprima por consola todos los números comprendidos
102+
entre 10 y 55 (incluidos), pares, y que no son ni el 16 ni múltiplos de 3.*/
103+
i = 10;
104+
while(i <= 55)
105+
{
106+
if(i % 2 == 0 && i != 16 && i % 3 != 0)
107+
{
108+
printf("%d\n", i);
109+
}
110+
i++;
111+
}
112+
return (0);
113+
}
114+
115+

0 commit comments

Comments
 (0)