variable re-definition not working

variable re-definition not working - 消息

#1 已发布: 2020/7/12 18:23:05
bertrandC

bertrandC

0个赞,共1个帖子。

组: User

In the image below, I redefine b after using it in the calculation for c on the third line, but when I try to recalculate c on the 5th line, it doesn't use the updated value for b. I have to redefine c for the variable b to use the new value for b.

image.png
#2 已发布: 2020/7/12 19:02:51
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Make it algo style.

algo.PNG
#3 已发布: 2020/7/12 23:02:19
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi Bertrand. Try this, please.

Clipboard01.gif

Best regards.
Alvaro.
2位用户喜欢此帖子
Davide Carpi 2020/7/13 05:17:00, frapuano 2020/7/13 08:48:00
#4 已发布: 2020/7/13 07:21:49
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Get more from algo style.

algo-solve.PNG
  • 有新帖
  • 无新帖