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
sss
Fórum ➡ Prime numbers implemented using LINQ statements AND using FOR loop ♦
Sequential n Take ex
Testing 9
conter 1 in binnary number
asxasxdf
ss
Fibonacci of array elements C#
Two lines of Random number
Intuit // C# // Lecture_4 // Laba_#2