Answer the question
In order to leave comments, you need to log in
In what al language can the algorithm for converting decimal numbers to octal be represented?
There is no algorithmic language that can use both decimal and octal numbers.
Answer the question
In order to leave comments, you need to log in
There are no decimal and octal numbers.
There are numbers, but there is their notation - binary, octal, decimal, hexadecimal...
The number is the same, but the line of text representing it is different.
In C it is possible - 0123 = 123 8 . But why do you need it?
Usually a number in any positional number system - 10th, 8th, 16th - is written in a line. And I don’t say “transfer from the 10th system to the 8th”, but “transfer from the native system to the octal system” - because it doesn’t matter which system is native, the main thing is that we can perform arithmetic operations in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question