32
1
using System;
2
using System.Linq;
3
using System.Collections.Generic;
4
5
public class Program
6
{
7
public static void Main()
8
{
9
METHOD(25);
10
}
11
12
public static int METHOD(long n)
13
//25
14
{
15
String holder = n.ToString();
16
17
List<int> numbers = new List<int>();
18
19
for (int i = 0; i<=holder.Length-1; i++)
20
{
21
numbers.Add(Int32.Parse(holder[i].ToString()));
22
}
23
for (int i = 0; i <= numbers.Count - 1; i++)
24
{
25
Console.WriteLine("List Position " + i + " is: " + numbers[i]);
26
}
27
return (int)n;
28
}
29
}
30
31
32
Cached Result