File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/c# Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ /* Crea un comentario en el código y coloca la URL del sitio web oficial del
2+ * lenguaje de programación que has seleccionado.*/
3+
4+ // Web oficial C# --> https://dotnet.microsoft.com/es-es/languages/csharp
5+
6+ /* - Crea un comentario en el código y coloca la URL del sitio web oficial del
7+ * lenguaje de programación que has seleccionado.*/
8+ // Este es un comentario en una línea
9+
10+ /*
11+ Este es un comentario con varias líneas
12+ */
13+
14+ /// <summary>
15+ /// Este es un comentario para generar documentacion XML desde el compilador.
16+ /// </summary>
17+
18+ /* - Crea una variable (y una constante si el lenguaje lo soporta).*/
19+ int i ;
20+ const int j = 2 ;
21+
22+ /* - Crea variables representando todos los tipos de datos primitivos
23+ * del lenguaje (cadenas de texto, enteros, booleanos...).*/
24+ int integer ;
25+ long bigInt ;
26+ float puntoFlotante ;
27+ double puntoFlotanteDoble ;
28+ decimal monetario ;
29+ string cadena ;
30+ char caracter ;
31+ bool booleano ;
32+
33+
34+ /* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"*/
35+ string lang = "C#" ;
36+ Console . WriteLine ( $ "¡Hola, { lang } !") ;
You can’t perform that action at this time.
0 commit comments