Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
eden
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine("please insert a number"); int num=int.Parse(Console.ReadLine()); int sod=0; for(int i=0;i<=num;i++) {if(i%2==0) sod=sod+i; } Console.WriteLine(sod); } } }
run
|
edit
|
history
|
help
0
Decorator Design Pattern
Project Euler Problem 4
IotaSeedGenerator
Get year quarter from date
Second minor int
SierpinskiTriangleChaosGameRecursion
Intuit // C# // listing_4.6 (if_then_else // Shooting on the target)
Need to convert datetime containg '/' to '-' format
StackOverflow Generic
C# Bubble Sort