New answers tagged converting
2
votes
Convert from decimal to binary and octal
The code presented could be more readable.
Starting with comments telling what "everything" is there for.
Naming: integers/numbers are not decimal.
Representations are, unless specified ...
0
votes
Convert from decimal to binary and octal
This may give you computational boost. Although as pointed out by others in comment this may be "The" code produced by modern day compilers.
...
3
votes
Convert from decimal to binary and octal
The global variables make it harder to reuse your code. They seem to be unnecessary anyway: the integer variables are used only in main(), and ...
Top 50 recent answers are included
Related Tags
converting × 356c# × 68
python × 58
c++ × 56
strings × 53
java × 51
beginner × 42
performance × 38
c × 34
datetime × 29
javascript × 26
python-3.x × 22
reinventing-the-wheel × 20
integer × 18
ruby × 17
numbers-to-words × 16
algorithm × 13
parsing × 12
roman-numerals × 12
programming-challenge × 11
.net × 10
array × 9
json × 9
object-oriented × 8
c++11 × 7