Skip to content

Commit bd6bd12

Browse files
authored
Merge pull request #1 from miguelgargallo/main
#00 - CS
2 parents 238a17b + 96f3acf commit bd6bd12

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// URL del sitio web oficial de C#: https://learn.microsoft.com/en-us/dotnet/csharp/
2+
3+
// Comentario de una sola línea en C#
4+
5+
/*
6+
Comentario de varias líneas en C#
7+
*/
8+
9+
// Declaración de variable y constante
10+
string nombreIdioma = "C#";
11+
const string SALUDO = "¡Hola, ";
12+
13+
// Tipos de datos primitivos en C#
14+
int numero = 42;
15+
double numeroFraccionario = 3.14;
16+
bool esDivertidoProgramar = true;
17+
char caracterIndividual = 'A';
18+
19+
// Imprimir el mensaje
20+
Console.WriteLine(SALUDO + nombreIdioma + "!");

0 commit comments

Comments
 (0)