По някаква причина получавам Runtime error на Convert from base-10 to base-N и обратната задача и не виждам проблема...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Base_10toBase_N { class Program { static void Main(string[] args) { int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int newBase = input[0]; int base10 = input[1]; string result = ""; while (base10>0) { int remainder = base10 % newBase; result = remainder + result; base10 /= newBase; } Console.WriteLine(result); } } }