Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Switch
//Microsoft (R) Visual C# Compiler version 3.4.0-beta4-19562-05 (ff930dec) //Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int numero = Convert.ToInt16(Console.ReadLine());//ingreso tipo int var data = numero; //var va a ser de tipo del dato que le asignemos switch(data) { case 1: Console.WriteLine("el numero 1 es igual a {0}", data); break; case 2: Console.WriteLine("el numero 2 es igual a {0}", data); break; case 3: Console.WriteLine("el numero 3 es igual a {0}", data); break; case 4: Console.WriteLine("el numero 4 es igual a {0}", data); break; case 5: Console.WriteLine("el numero 5 es igual a {0}", data); break; default: Console.WriteLine("el numero {0} no ha sido encontrado", data); break; } } } }
run
|
edit
|
history
|
help
0
Hex_Base64
Volatile madness
nn
Index.cshtml
Jai
1
xml into dictionary
String combinations
asxs
7.1. Asynchrony: the new approach