Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Оператор switch
//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) { int m = int.Parse(Console.ReadLine()); switch (m) {case 2: Console.WriteLine("28 или 29 дни"); break; case 4: case 6: case 9: case 11: Console.WriteLine("30 дни"); break; defult: Console.WriteLine("31 дена"); break; } } } }
run
|
edit
|
history
|
help
0
Project01
GC collects object in scope
combof123usingloop
static, private, public constructor in C#
abdurrahimcan@gmail.com
12
Simple Constructor Implementation
Boggle
using @ to prefix a string
Fórum ➡ Prime numbers implemented using LINQ statements AND using FOR loop ♦