Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Simplified login system
Pentagon`s area
1213
Fórum ➡ GroupJoin ➡ Join ➡ Easily ‼
bst - lot of methods
30272 Program Ex7_1 switch_int
Boggle
Delegate, Method, List, Classes, Conditions
Fórum ➡ Get all combinations for ▶different◀ Id's ♦
Binary search tree - In-order Traversal
Please log in to post a comment.