注:希望能全部完整输出,而不是逐个输出
static void Main(string[] args) { int inPutNumber = int.Parse(Console.ReadLine()); do { string current = ""; int Model = inPutNumber % 8; inPutNumber/= 8; int intTemp = '0' + Model; char charTemp=Convert.ToChar(intTemp); current = charTemp + current; Console.WriteLine(current); Console.ReadLine(); } while (inPutNumber != 0); }