Skip to content

Commit 5ea080c

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents d216787 + ffd05e6 commit 5ea080c

File tree

2,863 files changed

+345927
-2889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,863 files changed

+345927
-2889
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
*.xml
44
*.iml
55
*.json
6+
*.csv
7+
*.zip
68
!stats.json
79
.DS_Store
810
.idea/
911
pubspec.yaml
10-
pubspec.lock
12+
pubspec.lock
13+
.venv
14+
*.class
15+
*.gradle

Images/pro.jpg

283 KB
Loading

README.md

Lines changed: 41 additions & 18 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 julio de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/wZn6cmdR?event=1262532223417057411)** por país y crea un **[recordatorio](https://discord.gg/wZn6cmdR?event=1262532223417057411)**
30+
> #### Lunes 9 de diciembre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/mtHpG4md?event=1310726079039799438)** por país y crea un **[recordatorio](https://discord.gg/mtHpG4md?event=1310726079039799438)**
3232
3333
## Roadmap
3434

@@ -64,20 +64,35 @@
6464
|27|[SOLID: PRINCIPIO ABIERTO-CERRADO](./Roadmap/27%20-%20SOLID%20OCP/ejercicio.md)|[📝](./Roadmap/27%20-%20SOLID%20OCP/python/mouredev.py)|[▶️](https://youtu.be/o0lSVzu4ur4)|[👥](./Roadmap/27%20-%20SOLID%20OCP/)
6565
|28|[SOLID: PRINCIPIO DE SUSTITUCIÓN DE LISKOV](./Roadmap/28%20-%20SOLID%20LSP/ejercicio.md)|[📝](./Roadmap/28%20-%20SOLID%20LSP/python/mouredev.py)|[▶️](https://youtu.be/SgHoiF1KLTo)|[👥](./Roadmap/28%20-%20SOLID%20LSP/)
6666
|29|[SOLID: PRINCIPIO DE SEGREGACIÓN DE INTERFACES](./Roadmap/29%20-%20SOLID%20ISP/ejercicio.md)|[📝](./Roadmap/29%20-%20SOLID%20ISP/python/mouredev.py)|[▶️](https://youtu.be/0zTmCTHJ_lg)|[👥](./Roadmap/29%20-%20SOLID%20ISP/)
67-
|30|[SOLID: PRINCIPIO DE INVERSIÓN DE DEPENDENCIAS](./Roadmap/30%20-%20SOLID%20DIP/ejercicio.md)|[🗓️ 29/07/24](https://discord.gg/wZn6cmdR?event=1262532223417057411)||[👥](./Roadmap/30%20-%20SOLID%20DIP/)
67+
|30|[SOLID: PRINCIPIO DE INVERSIÓN DE DEPENDENCIAS](./Roadmap/30%20-%20SOLID%20DIP/ejercicio.md)|[📝](./Roadmap/30%20-%20SOLID%20DIP/python/mouredev.py)|[▶️](https://youtu.be/wxIj6Rs8rAU)|[👥](./Roadmap/30%20-%20SOLID%20DIP/)
68+
|31|[SIMULADOR JUEGOS OLÍMPICOS](./Roadmap/31%20-%20SIMULADOR%20JUEGOS%20OLÍMPICOS/ejercicio.md)|[📝](./Roadmap/31%20-%20SIMULADOR%20JUEGOS%20OLÍMPICOS/python/mouredev.py)|[▶️](https://youtu.be/JN656lQ9WBo)|[👥](./Roadmap/31%20-%20SIMULADOR%20JUEGOS%20OLÍMPICOS/)
69+
|32|[BATALLA DEADPOOL Y WOLVERINE](./Roadmap/32%20-%20BATALLA%20DEADPOOL%20Y%20WOLVERINE/ejercicio.md)|[📝](./Roadmap/32%20-%20BATALLA%20DEADPOOL%20Y%20WOLVERINE/python/mouredev.py)|[▶️](https://youtu.be/u2Tn2H3pqjw)|[👥](./Roadmap/32%20-%20BATALLA%20DEADPOOL%20Y%20WOLVERINE/)
70+
|33|[RESCATANDO A MICKEY](./Roadmap/33%20-%20RESCATANDO%20A%20MICKEY/ejercicio.md)|[📝](./Roadmap/33%20-%20RESCATANDO%20A%20MICKEY/python/mouredev.py)|[▶️](https://youtu.be/Bo9Cp3N68C0)|[👥](./Roadmap/33%20-%20RESCATANDO%20A%20MICKEY/)
71+
|34|[ÁRBOL GENEALÓGICO DE LA CASA DEL DRAGÓN](./Roadmap/34%20-%20ÁRBOL%20GENEALÓGICO%20LA%20CASA%20DEL%20DRAGÓN/ejercicio.md)|[📝](./Roadmap/34%20-%20ÁRBOL%20GENEALÓGICO%20LA%20CASA%20DEL%20DRAGÓN/python/mouredev.py)|[▶️](https://youtu.be/GAHBOAzgE2w)|[👥](./Roadmap/34%20-%20ÁRBOL%20GENEALÓGICO%20LA%20CASA%20DEL%20DRAGÓN/)
72+
|35|[REPARTIENDO LOS ANILLOS DE PODER](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/ejercicio.md)|[📝](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/python/mouredev.py)|[▶️](https://youtu.be/10i2dnaMLj8)|[👥](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/)
73+
|36|[EL SOMBRERO SELECCIONADOR](./Roadmap/36%20-%20EL%20SOMBRERO%20SELECCIONADOR/ejercicio.md)|[📝](./Roadmap/36%20-%20EL%20SOMBRERO%20SELECCIONADOR/python/mouredev.py)|[▶️](https://youtu.be/_UjOD587elY)|[👥](./Roadmap/36%20-%20EL%20SOMBRERO%20SELECCIONADOR/)
74+
|37|[OASIS VS LINKIN PARK](./Roadmap/37%20-%20OASIS%20VS%20LINKIN%20PARK/ejercicio.md)|[📝](./Roadmap/37%20-%20OASIS%20VS%20LINKIN%20PARK/python/mouredev.py)|[▶️](https://youtu.be/q-zBKriHupY)|[👥](./Roadmap/37%20-%20OASIS%20VS%20LINKIN%20PARK/)
75+
|38|[MOUREDEV PRO](./Roadmap/38%20-%20MOUREDEV%20PRO/ejercicio.md)|[📝](./Roadmap/38%20-%20MOUREDEV%20PRO/python/mouredev.py)|[▶️](https://youtu.be/AbGROLoAVLs)|[👥](./Roadmap/38%20-%20MOUREDEV%20PRO/)
76+
|39|[BATMAN DAY](./Roadmap/39%20-%20BATMAN%20DAY/ejercicio.md)|[📝](./Roadmap/39%20-%20BATMAN%20DAY/python/mouredev.py)|[▶️](https://youtu.be/Lmj5enZG5pg)|[👥](./Roadmap/39%20-%20BATMAN%20DAY/)
77+
|40|[FORTNITE RUBIUS CUP](./Roadmap/40%20-%20FORTNITE%20RUBIUS%20CUP/ejercicio.md)|[📝](./Roadmap/40%20-%20FORTNITE%20RUBIUS%20CUP/python/mouredev.py)|[▶️](https://youtu.be/UlWtFvLLSXw)|[👥](./Roadmap/40%20-%20FORTNITE%20RUBIUS%20CUP/)
78+
|41|[CAMISETA RAR](./Roadmap/41%20-%20CAMISETA%20RAR/ejercicio.md)|[📝](./Roadmap/41%20-%20CAMISETA%20RAR/python/mouredev.py)|[▶️](https://youtu.be/QXFrWIFCkGY)|[👥](./Roadmap/41%20-%20CAMISETA%20RAR/)
79+
|42|[TORNEO DRAGON BALL](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/ejercicio.md)|[📝](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/python/mouredev.py)|[▶️](https://youtu.be/SgwX7ISEkvM)|[👥](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/)
80+
|43|[GIT GITHUB CLI](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/ejercicio.md)|[📝](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/python/mouredev.py)|[▶️](https://youtu.be/Ct4GKpbqflI)|[👥](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/)
81+
|44|[CUENTA ATRÁS MOUREDEV PRO](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/ejercicio.md)|[📝](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/python/mouredev.py)|[▶️](https://youtu.be/9wsXz4K8Q-4)|[👥](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/)
82+
|45|[GITHUB OCTOVERSE](./Roadmap/45%20-%20GITHUB%20OCTOVERSE/ejercicio.md)|[📝](./Roadmap/45%20-%20GITHUB%20OCTOVERSE/python/mouredev.py)|[▶️](https://youtu.be/yj5ZFT_Xmcs)|[👥](./Roadmap/45%20-%20GITHUB%20OCTOVERSE/)
83+
|46|[X VS BLUESKY](./Roadmap/46%20-%20X%20VS%20BLUESKY/ejercicio.md)|[📝](./Roadmap/46%20-%20X%20VS%20BLUESKY/python/mouredev.py)|[▶️](https://youtu.be/RzwFGihKpOM)|[👥](./Roadmap/46%20-%20X%20VS%20BLUESKY/)
84+
|47|[CALENDARIO DE ADVIENTO](./Roadmap/47%20-%20CALENDARIO%20DE%20ADVIENTO/ejercicio.md)|[📝](./Roadmap/47%20-%20CALENDARIO%20DE%20ADVIENTO/python/mouredev.py)|[▶️](https://youtu.be/LteI1J5gmZw)|[👥](./Roadmap/47%20-%20CALENDARIO%20DE%20ADVIENTO/)
85+
|48|[ÁRBOL DE NAVIDAD](./Roadmap/48%20-%20ÁRBOL%20DE%20NAVIDAD/ejercicio.md)|[🗓️ 09/12/24](https://discord.gg/mtHpG4md?event=1310726079039799438)||[👥](./Roadmap/48%20-%20ÁRBOL%20DE%20NAVIDAD/)
6886

6987
## Cursos en YouTube
7088

7189
A media que avanzamos en el roadmap estoy creando cursos que agrupan las clases.
7290

73-
<div style="display: flex;">
74-
<div style="flex: 1;">
75-
<a href="https://youtu.be/TdITcVD64zI"><img src="http://i3.ytimg.com/vi/TdITcVD64zI/maxresdefault.jpg"/></a>
76-
</div>
77-
<div style="flex: 1;">
78-
<a href="https://youtu.be/b-kk1WQo-YA"><img src="http://i3.ytimg.com/vi/b-kk1WQo-YA/maxresdefault.jpg"/></a>
79-
</div>
80-
</div>
91+
[![Lógica 1](http://i3.ytimg.com/vi/TdITcVD64zI/maxresdefault.jpg)](https://youtu.be/TdITcVD64zI)
92+
93+
[![Lógica 2](http://i3.ytimg.com/vi/b-kk1WQo-YA/maxresdefault.jpg)](https://youtu.be/b-kk1WQo-YA)
94+
95+
[![Lógica 3 SOLID](http://i3.ytimg.com/vi/ASBC5drF-QU/maxresdefault.jpg)](https://youtu.be/ASBC5drF-QU)
8196

8297
## Instrucciones
8398

@@ -125,22 +140,30 @@ Si tienes dudas con el nombre del directorio de algún lenguaje, intenta consult
125140
[![Retos programación 2022](https://img.shields.io/github/stars/mouredev/Weekly-Challenge-2022-Kotlin?label=Retos%20Semanales%202022&style=social)](https://github.com/mouredev/Weekly-Challenge-2022-Kotlin)
126141
[![Aplicaciones portafolio](https://img.shields.io/github/stars/mouredev/Monthly-App-Challenge-2022?label=Aplicaciones%20portafolio&style=social)](https://github.com/mouredev/Monthly-App-Challenge-2022)
127142

143+
## Únete al campus de programación de la comunidad
144+
145+
![https://mouredev.pro](./Images/pro.jpg)
146+
147+
#### Te presento [mouredev pro](https://mouredev.pro), mi proyecto más importante para ayudarte a estudiar programación y desarrollo de software de manera diferente.
148+
149+
> **¿Buscas un extra?** Aquí encontrarás mis cursos editados por lecciones individuales, para avanzar a tu ritmo y guardar el progreso. También dispondrás de ejercicios y correcciones, test para validar tus conocimientos, examen y certificado público de finalización, soporte, foro de estudiantes, reunionnes grupales, cursos exclusivos y mucho más.
150+
>
151+
> Entra en **[mouredev.pro](https://mouredev.pro)** y utiliza el cupón **"PRO"** con un 10% de descuento en tu primera suscripción.
152+
128153
## ![https://mouredev.com](https://raw.githubusercontent.com/mouredev/mouredev/master/mouredev_emote.png) Hola, mi nombre es Brais Moure.
129154
### Freelance full-stack iOS & Android engineer
130155

131-
[![Twitch](https://img.shields.io/badge/Twitch-Retos_en_directo-9146FF?style=for-the-badge&logo=twitch&logoColor=white&labelColor=101010)](https://twitch.tv/mouredev)
132-
[![Discord](https://img.shields.io/badge/Discord-Chat_comunidad-5865F2?style=for-the-badge&logo=discord&logoColor=white&labelColor=101010)](https://mouredev.com/discord)
133-
[![Link](https://img.shields.io/badge/Links_de_interés-moure.dev-39E09B?style=for-the-badge&logo=Linktree&logoColor=white&labelColor=101010)](https://moure.dev)
134-
135156
[![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCxPD7bsocoAMq8Dj18kmGyQ?style=social)](https://youtube.com/mouredevapps?sub_confirmation=1)
136157
[![Twitch Status](https://img.shields.io/twitch/status/mouredev?style=social)](https://twitch.com/mouredev)
137158
[![Discord](https://img.shields.io/discord/729672926432985098?style=social&label=Discord&logo=discord)](https://mouredev.com/discord)
138159
[![Twitter Follow](https://img.shields.io/twitter/follow/mouredev?style=social)](https://twitter.com/mouredev)
139160
![GitHub Followers](https://img.shields.io/github/followers/mouredev?style=social)
140-
![GitHub Stars](https://img.shields.io/github/stars/mouredev?style=social)
161+
![GitHub Followers](https://img.shields.io/github/stars/mouredev?style=social)
141162

142163
Soy ingeniero de software desde 2010. Desde 2018 combino mi trabajo desarrollando Apps con la creación de contenido formativo sobre programación y tecnología en diferentes redes sociales como **[@mouredev](https://moure.dev)**.
143164

144-
### En mi perfil de GitHub tienes más información
165+
Si quieres unirte a nuestra comunidad de desarrollo, aprender programación, mejorar tus habilidades y ayudar a la continuidad del proyecto, puedes encontrarnos en:
145166

146-
[![Web](https://img.shields.io/badge/GitHub-MoureDev-14a1f0?style=for-the-badge&logo=github&logoColor=white&labelColor=101010)](https://github.com/mouredev)
167+
[![Twitch](https://img.shields.io/badge/Twitch-Programación_en_directo-9146FF?style=for-the-badge&logo=twitch&logoColor=white&labelColor=101010)](https://twitch.tv/mouredev)
168+
[![Discord](https://img.shields.io/badge/Discord-Servidor_de_la_comunidad-5865F2?style=for-the-badge&logo=discord&logoColor=white&labelColor=101010)](https://mouredev.com/discord) [![Pro](https://img.shields.io/badge/Cursos-mouredev.pro-FF5500?style=for-the-badge&logo=gnometerminal&logoColor=white&labelColor=101010)](https://moure.dev)
169+
[![Link](https://img.shields.io/badge/Links_de_interés-moure.dev-14a1f0?style=for-the-badge&logo=Linktree&logoColor=white&labelColor=101010)](https://moure.dev) [![Web](https://img.shields.io/badge/GitHub-MoureDev-087ec4?style=for-the-badge&logo=github&logoColor=white&labelColor=101010)](https://github.com/mouredev)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# URL del sitio web oficial del lenguaje Bash:
4+
# https://www.gnu.org/software/bash/
5+
6+
# Comentario de una línea
7+
8+
: '
9+
Comentario
10+
de varias
11+
líneas
12+
'
13+
14+
# Creación de una variable
15+
mi_variable="Hola, Mundo!"
16+
17+
# Creación de una constante (en Bash se usa la convención de variables de solo lectura)
18+
readonly MI_CONSTANTE="Esto es una constante"
19+
20+
# Variables representando los tipos de datos primitivos en Bash
21+
cadena_de_texto="Esto es una cadena de texto"
22+
entero=42
23+
flotante=3.14
24+
booleano_verdadero=true
25+
booleano_falso=false
26+
27+
# Imprimir por terminal el texto: "¡Hola, Bash!"
28+
echo "¡Hola, Bash!"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# URL del sitio web oficial de Bash: https://www.gnu.org/software/bash/
4+
5+
# COMENTARIOS
6+
7+
# Esto es un comentario de una linea.
8+
9+
: '
10+
Este es un comentario
11+
de varias lineas
12+
'
13+
14+
15+
# VARIABLES
16+
17+
variable=0 # variable
18+
readonly constant="Mi constante" # constante
19+
20+
function my_function {
21+
local variable_local=0 # variable local
22+
}
23+
24+
# TIPOS DE DATOS
25+
26+
variable="String" # String
27+
variable=1 # Int
28+
variable=("rojo" "verde" "azul") # Array
29+
variable=true # Boolean
30+
31+
declare -A dictionary
32+
dictionary[valor]='valor1' # diccionario
33+
34+
# Hola mundo
35+
echo "Hola, Bash!" # echo sirve para imprimir en la terminal
36+
37+
# Para llamar a una variable se usa el simbolo $[nombre de la variable]
38+
variable="Hola Bash"
39+
echo $variable
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Documentación oficial: https://learn.microsoft.com/es-es/dotnet/csharp/
2+
/* Este es en comentario de múltiples líneas
3+
Prueba de comentarios
4+
*/
5+
// Este es un comentario de una linea
6+
7+
//Definimos Variables y Constantes
8+
var variable = 30; //Variable en C#
9+
const int constante = 10; //Constante en C#
10+
11+
//Tipos de Datos
12+
int entero = 20; //Entero
13+
float flotante32Bits = 5.14f; //Numero de punto flotante de 32 bits
14+
double doble = 3.14; //Numero de punto flotante de 64 bits
15+
long largo = 3.2342; //Numero de punto flotante de 64 bits
16+
decimal decimalNumber = 10.3; //Decimal
17+
string cadena = "Esto es un String"; //Cadena de texto
18+
char caracter = 'C'; //Caracter
19+
bool booleano = true; //Booleano
20+
21+
//Imprimimos en consola
22+
Console.WriteLine("Variable: " + variable);
23+
Console.WriteLine("Constante: " + constante);
24+
Console.WriteLine("Entero: " + entero);
25+
Console.WriteLine("Flotante 32 bits: " + flotante32Bits);
26+
Console.WriteLine("Doble: " + doble);
27+
Console.WriteLine("Largo: " + largo);
28+
Console.WriteLine("Decimal: " + decimalNumber);
29+
Console.WriteLine("Cadena: " + cadena);
30+
Console.WriteLine("Caracter: " + caracter);
31+
Console.WriteLine("Booleano Verdadero: " + booleano);
32+
Console.WriteLine("Booleano Falso: " + !booleano);
33+
Console.WriteLine("Hola Mundo!");
34+
// // Documentación oficial: https://learn.microsoft.com/es-es/dotnet/csharp/
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Runtime.CompilerServices;
5+
using System.Runtime.ConstrainedExecution;
6+
using System.Security.Policy;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Text;
10+
using System.Threading.Tasks;
11+
12+
namespace PracticasLogicaProgramacion
13+
{
14+
internal class Program
15+
{
16+
static void Main(string[] args)
17+
{
18+
//EJERCICIOS
19+
//1. Crea un comentario en el código y coloca la URL del
20+
//sitio web oficial del lenguaje de programación que has seleccionado.
21+
22+
https://learn.microsoft.com/en-us/dotnet/csharp/
23+
24+
//2. Representa las diferentes sintaxis que existen de crear comentarios
25+
//en el lenguaje (en una línea, varias...).
26+
27+
//Este se utiliza para escribir comentarios de una sola linea.
28+
/*
29+
este se utiliza para escribir comentarios de varias lineas.
30+
*/
31+
32+
//3. Crea una variable (y una constante si el lenguaje lo soporta).
33+
34+
private int num;
35+
private const int numConst;
36+
37+
//4. Crea variables representando todos los tipos de datos primitivos
38+
//del lenguaje (cadenas de texto, enteros, booleanos...).
39+
40+
//1. Enteros
41+
private int num1; //numeros enteros de 32 bits.
42+
private long num2; //numeros enteros de 64 bits.
43+
private short num3; //numeros enteros de 16 bits.
44+
private byte num4; //numeros enteros sin signo de 8 bits.
45+
private sbyte num5; //numeros enteros con signo de 8 bits.
46+
private uint num6; //numeros enteros sin signo de 32 bits,
47+
private ulong num7; //numeros enteros sin signo de 64 bits.
48+
private ushort num8; //numeros enteros sin signo de 16 bits.
49+
50+
//2. Float
51+
private float num9; //Números de punto flotante de precisión simple (32 bits).
52+
private double num10; //Números de punto flotante de doble precisión (64 bits).
53+
54+
//3. Decimal
55+
private decimal num11; //Números decimales de alta precisión, generalmente usados para cálculos financieros (128 bits).
56+
57+
//4. Booleanos
58+
bool jump; // Representa valores booleanos (true o false).
59+
60+
//5. Caracteres
61+
private char Caracter; //Representa un carácter Unicode UTF-16 (16 bits).
62+
63+
//6. Cadenas
64+
private string name; //Secuencia de caracteres Unicode.
65+
66+
//5. Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
67+
EJERCICIO ejercicio = new EJERCICIO();
68+
ejercicio.saludo();
69+
70+
}
71+
public class EJERCICIOS
72+
{
73+
public void Saludo()
74+
{
75+
Console.WriteLines("¡Hola, [C#]!")
76+
}
77+
78+
}
79+
}
80+
}
81+
82+
namespace _00_SINTAXIS__VARIABLES__TIPOS_DE_DATOS_Y_HOLA_MUNDO
83+
{
84+
internal class Program
85+
{
86+
static void Main(string[] args)
87+
{
88+
// EJERCICIO:
89+
//1-Crea un comentario en el código y coloca la URL del sitio web oficial del
90+
// lenguaje de programación que has seleccionado.
91+
//https://learn.microsoft.com/en-us/dotnet/csharp/
92+
93+
//2-Representa las diferentes sintaxis que existen de crear comentarios
94+
// en el lenguaje(en una línea, varias...).
95+
96+
// Esta reprenta un comentario de una linea
97+
/*
98+
* esta representa un comentarios de varias lineas
99+
*/
100+
101+
//3-Crea una variable(y una constante si el lenguaje lo soporta).
102+
103+
//4-Crea variables representando todos los tipos de datos primitivos
104+
// del lenguaje(cadenas de texto, enteros, booleanos...).
105+
106+
//5-Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
107+
EJERCICIOS ejercicios = new EJERCICIOS();
108+
ejercicios.getLenguaje();
109+
110+
}
111+
public class EJERCICIOS
112+
{
113+
//3-Crea una variable(y una constante si el lenguaje lo soporta).
114+
private int myNum;
115+
private const int numConst = 0;
116+
117+
//4-Crea variables representando todos los tipos de datos primitivos
118+
// del lenguaje(cadenas de texto, enteros, booleanos...).
119+
private int num1; //Números enteros de 32 bits.
120+
private long num2; //Números enteros de 64 bits.
121+
private short num3; //Números enteros de 16 bits.
122+
private byte num4; //Números enteros sin signo de 8 bits.
123+
private sbyte num5; //Números enteros con signo de 8 bits.
124+
private uint num6; //Números enteros sin signo de 32 bits.
125+
private ulong num7; //Números enteros sin signo de 64 bits.
126+
private ushort num8; //Números enteros sin signo de 16 bits.
127+
private float myfloat; //Números de punto flotante de precisión simple(32 bits).
128+
private double num_double; //Números de punto flotante de doble precisión(64 bits).
129+
private decimal num_decimal; //Números decimales de alta precisión, generalmente usados para cálculos financieros(128 bits).
130+
private bool boolean; //Representa valores booleanos(true o false).
131+
private char char1; //Representa un carácter Unicode UTF-16 (16 bits).
132+
private string name; //Secuencia de caracteres Unicode.
133+
134+
public void getLenguaje()
135+
{
136+
Console.WriteLine("¡Hola, [C#]!");
137+
}
138+
}
139+
}
140+
}

0 commit comments

Comments
 (0)