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
dairkoos
towers of hanoi
PhoneBook- Dictionary
Char To Image
Período
Vin Generator V1
Sample Code
FINAL PRIME NUMBER GENERATOR IN C#
Plt-D v.0.9.5
OBJ Good Start