0

What's wrong?

Bugs when I use "-" and "+" buttons. https://code.sololearn.com/W0gTJ4IYbwdO/?ref=app

22nd Feb 2019, 1:18 PM
Roman Pervutinskiy
Roman Pervutinskiy - avatar
9 Answers
+ 2
And also line 50 not c = a - c should be c = c - a c is the stored overall result a is the current value on screen https://code.sololearn.com/WMN5R3rDtWkN/?ref=app Actually the best analog calculator. Good job
22nd Feb 2019, 3:53 PM
Gordon
Gordon - avatar
+ 2
Read comments
22nd Feb 2019, 2:25 PM
Maneren
Maneren - avatar
+ 2
Yeah, i was wondering where is c function too
22nd Feb 2019, 3:49 PM
Maneren
Maneren - avatar
+ 2
Maneren c is not a function, c is the variable storing the computed variable. The error did not occur because we have not test the result to over 12 digits and enter the if code block
22nd Feb 2019, 3:55 PM
Gordon
Gordon - avatar
+ 1
Sorry?
22nd Feb 2019, 2:26 PM
Roman Pervutinskiy
Roman Pervutinskiy - avatar
+ 1
line 50 line 51 typo the function name is cl() not c()
22nd Feb 2019, 3:48 PM
Gordon
Gordon - avatar
+ 1
And for matter of style of code https://code.sololearn.com/W8lMeQL8Jkmr/?ref=app
22nd Feb 2019, 3:55 PM
Maneren
Maneren - avatar
+ 1
I meant how can he call function named c when there is no fuction named c, because c is variable
22nd Feb 2019, 3:58 PM
Maneren
Maneren - avatar
+ 1
Thank you very much, guys!
22nd Feb 2019, 4:46 PM
Roman Pervutinskiy
Roman Pervutinskiy - avatar