.NET Fiddle

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		var telefone = "2345678";
		Console.WriteLine(telefone);		
		if(telefone.Length > 8)
		Console.WriteLine(telefone.Substring(telefone.Length -8));
	}
}
;