Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Number to string
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Text; namespace Rextester { public class Program { public static void Main(string[] args) { var number = 255; //Your code goes here var baseNumber = 8; var resultBuilder = new StringBuilder(); while(number > 0){ resultBuilder.Insert(0, number % baseNumber); number /= baseNumber; } Console.WriteLine(resultBuilder.ToString()); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Convert from one encoding to another
D14
float to short cast overflow
Get UTC time and offset minutes
Difference between Equals and ==
4647
IsDivisibleV2
C
BreakNum3
Período
Please log in to post a comment.