Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Converting an int to an int[] using linq.
//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 num = 456123; var numArray = num.ToString().Select(x => int.Parse(x.ToString())).ToArray(); foreach(int item in numArray) { Console.WriteLine(item); } } } }
run
|
edit
|
history
|
help
0
Intuit // C# // listing_4.6 (Shooting on the target)
Konsol Kelebek Deseni
Reverse linked list iterative method
Collection_ Introduction default constructor rule_accessing methods from object returned from property
Testing 9
Knapsack Problem
axasd
Task 1_4
Classes
makingNum