Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Range List for C#
// Range List for C# using System; using System.Collections.Generic; using System.Linq; namespace Rextester{ public class Program{ public static void Main(string[] args){ int a=1,b=20,c=3; var rng=Enumerable.Range(0,(int)Math.Ceiling((float)(b-a)/c)) .Select(i=>a+i*c) .ToList(); foreach(var i in rng){ Console.WriteLine(i); } } } }
run
|
edit
|
history
|
help
0
azs dasx
Vowel
Math 10.9 edited makeMultQ
unix practice - santhosh
OddEven
Dictionary that tells which key was not present
Fibbonachi number by LINQ expression
simple hello world
test
Abstract Example