Run Code
|
API
|
Code Wall
|
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
dfdfdff
https://www.fxp.co.il/showthread.php?t=21125499
d
golestanali
D19
Product, Category, Composition and Inheritance
isanagram
C# - a method that accepts an indefinite number of parameters
Count the number of capital letters, small letters, digits, spaces and special characters.
functional program