-
-
Save parzibyte/809a3099ca6a46d037c8b1085241c4e8 to your computer and use it in GitHub Desktop.
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
/* | |
https://parzibyte.me/blog | |
*/ | |
using System; | |
class MainClass { | |
public static void Main (string[] args) { | |
var (nombre, edad) = regresarDosValores(); | |
Console.WriteLine("El nombre es: "); | |
Console.WriteLine(nombre); | |
Console.WriteLine("La edad es:"); | |
Console.WriteLine(edad); | |
} | |
public static (string, int) regresarDosValores(){ | |
string nombre = "Luis"; | |
int edad = 23; | |
return (nombre, edad); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment