Hi there,
Is posible that there's a bug in the proposed algorithm for converting an octal number to decimal?
Posible error
Under discussion
Comments (6)
- Popular
- New
- Old
You must be signed in to leave a comment
LuisRC
13 January 2022, 18:17
Ok Lisa, I have sent an email to the support team.
Thanks again.
0
LuisRC
13 January 2022, 17:51
Ok. thanks.
0
Lisa
13 January 2022, 18:09
maybe write the CG people and describe the bug
support@...
0
LuisRC
13 January 2022, 17:20
What I mean is that in the task0905 "Octal Converter" there are two proposed algorithms. One of them is for converting a decimal number to octal an the other is for converting an octal number to decimal. This last one is the following:
i is equal to 0
while (the octal number is not 0) {
the octal number = the decimal number + (remainder of the division of the octal number by 10) * 8 to the power of i
the octal number = the octal number / 10
increase i by 1
}
In this proposal and inside the while loop, the first "the octal number" is wrong to me. Shouldn't it be "the decimal number"?
Next I send a link to the task.
https://codegym.cc/es/tasks/en.codegym.task.pro.task09.task0905
+1
Lisa
13 January 2022, 17:45
As said, I can not open the task page you refer to. Not from the link you pasted and not from the link in the header. It is forbidden for me. There are different learning pathes inside CG. Depends on language, pro or not pro or whatever. Important is just, that probably only people from Spain on the pro path can open the task description.
To your question... I think you're right ;)

0
Lisa
12 January 2022, 21:10
... :) without the code (and task description)... 馃槣馃お not much I can say
+1