Untitled

Run Settings
LanguageC#
Language Version
Run Command
using System; class MainClass { public static string RemoveStartSpaces(string text) { int count = 0; while (text[count].Equals(' ')) { count++; } return text.Substring(count); } public static int GetMinPowerOfTwoLargerThan(int number) { int result = 1; if (number >= 2) { int count = 1; result = 2; while (result <= number) { result = (int)Math.Pow(result, count); count++; } } return result; } public static void Main() { //Console.WriteLine(RemoveStartSpaces(" many spaces")); Console.WriteLine(GetMinPowerOfTwoLargerThan(128)); } }
Editor Settings
Theme
Key bindings
Full width
Lines