-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mouredev:main' into main
- Loading branch information
Showing
16 changed files
with
1,848 additions
and
807 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/c#/GeorgeHaz.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
class Ejercicio00 | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
//**Pagina del lenguajes** | ||
//https://dotnet.microsoft.com/es-es/languages/csharp | ||
|
||
//**Sintaxis para crear comentarios | ||
//Soy un comentario de una linea. | ||
/*Soy un comnetario | ||
de varias lineas | ||
*/ | ||
|
||
//Variables y constante | ||
string variable; | ||
const string constante; | ||
|
||
//Datos primitivos | ||
string texto = "Hola"; | ||
int entero = 20; | ||
double miDouble = 1.1; | ||
float miFloat = 1.1111f; | ||
decimal miDecimal = 1.111m; | ||
char miChart = 'k'; | ||
bool miBool = true; | ||
bool miBool2 = false; | ||
byte miByte = 255; | ||
ushort miUShort = 82839; | ||
|
||
//Impresion por terminal | ||
Console.WriteLine("¡Hola, C#!"); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/c/JustOrlo.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
#include <stdio.h> | ||
#include <stdbool.h> //Para trabajar con booleanos | ||
|
||
#define EULER 2.71828 //Declarando Constante con el método #define | ||
const int No_Id = 15; //Constante con el método const | ||
|
||
int main(){ | ||
// https://en.cppreference.com/w/c | ||
|
||
/* Commentario de Multiples lienas | ||
https://en.cppreference.com/w/c | ||
*/ | ||
|
||
|
||
char caracter = 'C'; // -128 a 127 | ||
short edad = 24; // -32,768 a 32,767 | ||
int año = 2025; //-2,147,483,648 a 2,147,483,647 | ||
unsigned int año_anterior = 2024; //0 a 4,294,967,295 | ||
long numero = 12313484; //4 bytes (32-bit) / 8 bytes (64-bit) | ||
float numero_f = 2.15468; //~6-7 dígitos de precisión | ||
double numero_d = 24.3568186; //~15-16 dígitos de precisión | ||
bool numero_b = false; // true = 1 y false = 0 | ||
|
||
printf("¡Hola, %c!\n", caracter); //Se imprime el mensaje Hola C, haciendo uso de la varia caracter de tipo char | ||
|
||
return 0; | ||
} |
51 changes: 51 additions & 0 deletions
51
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript/FabianRpv.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Sitio oficial: https://developer.mozilla.org/es/docs/Web/JavaScript | ||
|
||
// Esto es un comentario de una sola línea | ||
|
||
|
||
/* | ||
Esto es un comentario | ||
de varias líneas | ||
*/ | ||
|
||
|
||
// Crear una variable | ||
|
||
var variable1 = 1; // Forma antigua de declarar una variable | ||
let variable2 = 2; // Forma utilizada en ES6 | ||
|
||
// Crear una constante | ||
|
||
const constante = 3; | ||
|
||
|
||
// Tipos de datos | ||
|
||
let name = 'Fabian'; // String (cadena de texto) | ||
//console.log(typeof name); | ||
|
||
let age = 25; // Number (número) | ||
//console.log(typeof age); | ||
|
||
let height = 1.65; // Number (número con decimales) | ||
//console.log(typeof height); | ||
|
||
let isMale = true; // Boolean (valor verdadero o falso) | ||
//console.log(typeof isMale); | ||
|
||
let undefinedVariable; // Undefined (variable sin valor) | ||
//console.log(typeof undefinedVariable); | ||
|
||
let nullVariable = null; // Null (valor nulo) | ||
//console.log(typeof nullVariable); | ||
|
||
let mySymbol = Symbol('mySymbol'); // Symbol (valor único) | ||
//console.log(typeof mySymbol); | ||
|
||
let myBigInt = 9007199254740991n; // BigInt (números enteros muy grandes) | ||
//console.log(typeof myBigInt); | ||
|
||
|
||
// Imprimiendo en consola | ||
|
||
console.log('¡Hola, JavaScript!'); |
48 changes: 48 additions & 0 deletions
48
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/Cesir72.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# EJERCICIO RETO 00 | ||
|
||
|
||
|
||
# - Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado. | ||
|
||
# https://www.python.org | ||
|
||
# - Representa las diferentes sintaxis que existen de crear comentariose en el lenguaje (en una línea, varias...). | ||
''' | ||
Este es un comentario | ||
en varias líneas | ||
usando comillas simples | ||
''' | ||
|
||
""" | ||
Este es un comentario | ||
en varias líneas | ||
usando comisillas dobles | ||
""" | ||
|
||
|
||
# - Crea una variable (y una constante si el lenguaje lo soporta). | ||
|
||
CONST= PI = 3.1416 | ||
nombre = 'César' | ||
|
||
# - Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...). | ||
|
||
# esto es una cadena de texto | ||
Mystring = "Hola Mundo" | ||
# y esto es un entero | ||
numero = 23 | ||
# podemos comprobarlo con la función type | ||
print(type(Mystring)) | ||
print(type(numero)) | ||
print(type(PI)) | ||
booleano = True , False | ||
print(type(booleano)) | ||
float = 3.1416 | ||
print(type(float)) | ||
numeros_complejos = 1 + 2j | ||
print(type(numeros_complejos)) | ||
real = 0.2703E2 | ||
print(type(real)) | ||
# - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" | ||
|
||
print("¡Hola, Python!") |
24 changes: 24 additions & 0 deletions
24
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/JaviCT14.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# https://www.python.org | ||
|
||
# Comentario en una linea | ||
|
||
""" | ||
Creo que esto vendria | ||
siendo un comentario en | ||
3 lineas | ||
""" | ||
|
||
my_variable = "Intento 1" | ||
my_variable = "Intento 2" | ||
|
||
MY_CONSTANT = "No lo quites please" | ||
|
||
my_int = 5 | ||
my_float = 5.5 | ||
my_bool = True | ||
my_bool = False | ||
my_string = "Cadena de Texto 1" | ||
my_other_string = "Cadena de Texto 2" | ||
|
||
print ("Hola, Phyton!") | ||
|
34 changes: 34 additions & 0 deletions
34
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/TheReDNooB.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# https://www.python.org/ | ||
|
||
# comentario de una linea | ||
|
||
""" | ||
comentario | ||
en | ||
multiples | ||
lineas | ||
""" | ||
|
||
''' | ||
comentario | ||
en | ||
multiples | ||
lineas | ||
pero | ||
con | ||
comillas | ||
simples | ||
''' | ||
|
||
mi_variable = "esta es una variable" | ||
MY_CONSTANT = "esta es una variable contante, no me cambies de valor :(" # como tal no existe constantes, seria por convencion | ||
|
||
my_Int = 1 | ||
my_Float = 2.5 | ||
my_String = "este es una variable de tipo String" | ||
my_second_String = 'este es una variable de tipo String, pero con comillas simples' | ||
my_Bool = True | ||
my_Bool = False | ||
my_programming_language = "Python" | ||
|
||
print(f"Hola, {my_programming_language}!") |
58 changes: 58 additions & 0 deletions
58
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/rust/EAbalde.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
Comentario en bloque con el enunciado del ejercicio: | ||
¿Preparad@ para aprender o repasar el lenguaje de programación que tú quieras? | ||
- Recuerda que todas las instrucciones de participación están en el | ||
repositorio de GitHub. | ||
Lo primero... ¿Ya has elegido un lenguaje? | ||
- No todos son iguales, pero sus fundamentos suelen ser comunes. | ||
- Este primer reto te servirá para familiarizarte con la forma de participar | ||
enviando tus propias soluciones. | ||
EJERCICIO: | ||
- Crea un comentario en el código y coloca la URL del sitio web oficial del | ||
lenguaje de programación que has seleccionado. | ||
- Representa las diferentes sintaxis que existen de crear comentarios | ||
en el lenguaje (en una línea, varias...). | ||
- Crea una variable (y una constante si el lenguaje lo soporta). | ||
- Crea variables representando todos los tipos de datos primitivos | ||
del lenguaje (cadenas de texto, enteros, booleanos...). | ||
- Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" | ||
¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y | ||
debemos comenzar por el principio. | ||
*/ | ||
|
||
// Comentario de una sola línea con la URL oficial: https://www.rust-lang.org | ||
|
||
fn main() { | ||
/* | ||
Rust no permite declarar variables que no sean usadas. | ||
Para evitar que marque warnings en esas variables | ||
es necesario iniciarlas con un guión bajo. | ||
*/ | ||
// VARIABLES Y CONSTANTES: | ||
let _x = 1; // Esta es una variable inmutable. | ||
let mut _y = 2; // Esta es una variable mutable. | ||
|
||
const _YEAR: i32 = 365; // Esta es una constante. | ||
|
||
// DATOS PRIMITIVOS ESCALARES: | ||
let _a: i32 = -50; // Enteros con signo. Pueden ser i8, i16, i32, i64, i128 o isize. | ||
let _b: u32 = 100; // Enteros sin signo. Pueden ser u8, u16, u32, u64, u128 o usize. | ||
let _c: f32 = 1.0; // Decimales o de coma flotante. Pueden ser f32 o f64. | ||
let _d = true; // Datos booleanos. Pueden ser true o false. | ||
let _e: char = 'A'; // Caracteres Unicode. Pueden ser letras, números o símbolos. | ||
let _f: &str = "¡Hola Mundo!"; // Cadenas de texto. | ||
|
||
// DATOS PRIMITIVOS COMPUESTOS: | ||
|
||
// Arreglo o array. Colección de elementos del mismo tipo con longitud fija. | ||
let _g: [i32; 5] = [1, 2, 3, 4, 5]; | ||
// Tuplas. Colecciones de elementos que pueden ser de distinto tipo. | ||
let _h: (i32, f64, char) = (-50, 3.1416927, ''); | ||
|
||
// HOLA RUST: | ||
println!("¡Hola, Rust!"); | ||
} |
38 changes: 38 additions & 0 deletions
38
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/typescript/fhdzleon.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* * EJERCICIO: | ||
* - Crea un comentario en el código y coloca la URL del sitio web oficial del | ||
* lenguaje de programación que has seleccionado. | ||
* - Representa las diferentes sintaxis que existen de crear comentarios | ||
* en el lenguaje (en una línea, varias...). | ||
* - Crea una variable (y una constante si el lenguaje lo soporta). | ||
* - Crea variables representando todos los tipos de datos primitivos | ||
* del lenguaje (cadenas de texto, enteros, booleanos...). | ||
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" | ||
* | ||
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y | ||
* debemos comenzar por el principio. | ||
*/ | ||
|
||
/* | ||
Visita el sitio oficial de typescript: | ||
https://www.typescriptlang.org/ | ||
*/ | ||
|
||
// Comentario de una sola linea | ||
|
||
/* | ||
Comentario | ||
multilineas | ||
*/ | ||
|
||
let edad: number = 45; | ||
const nombre: string = "skulldev"; | ||
|
||
let string: string = "Esta es una cadena de texto"; | ||
let number: number = 0; | ||
let bool: boolean = true; | ||
let myArray: string[] = ["soy", "un", "array"]; | ||
let myObject: object = {}; | ||
|
||
let sayHello: () => void = () => console.log("hola typescript"); | ||
|
||
sayHello(); |
Oops, something went wrong.