Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
gfrsdfdfvgh
Max occured character in a string
FuncDelegate
Convert string to TimeSpan in C#
lookup test
2
ConcurrentStack<T>
EpsilonComparer
adxcsaxsd
DNA FINAL
Please log in to post a comment.