Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
octalofint
//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; namespace Rextester { public class Program { public static void PrintOctal(int num) { int [] oct= new int [10]; int i = 0; while (num > 0) { oct [i]= num % 8; num = num / 8; i++; } for (int j=i-1;j>=0;j--) { Console.Write(oct[j]); } } public static void Main(string[] args) { int n = 20; PrintOctal(n); } } }
run
|
edit
|
history
|
help
0
asdfrgyjukiuytre sdcd
Length
compra de restaurante
List Compare and print - Except
test1
HTML Hex to RGB without using System.Drawing C#
(Sort)Rounding Magic - C#
memes
Math 9.4
Конструктор класса