Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
svitch
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Random randNum =new Random(); int num; Console.WriteLine("how old are you?"); num=randNum.Next(1,6); Console.WriteLine(num); switch(num){ case 1:Console.WriteLine("num is "+num ); break; case 2: Console.WriteLine("2" ); break; default: Console.WriteLine("нічого"); break; } } } }
run
|
edit
|
history
|
help
0
Ejemplos polimorfismos con interfaces y posibles usos sencillos c#
Melody
radix sort
property_comparison3
Lp2
Escape's Vanity Fair (Malformed \p {X} character escape)
Irfan_Problem
Prime Number
testing DT Serialization
Beadando Simon Szabolcs