- 3

Please can anyone write this code in OOP

https://code.sololearn.com/cnp8NEv5udu7/?ref=app This function is static, but please don't use this pointer.

22nd Apr 2022, 1:23 PM
TeaserCode
5 Answers
+ 1
TeaserCode, do u need help yet?
24th Aug 2022, 8:02 AM
dottxt | off
dottxt | off - avatar
+ 1
Yes, but currently I doing another code problem. This code is not completed yet because there is a mistake with round function. Sometimes it has to round up, sometime down . I have to look at it again, but at the moment I am not working at it.
24th Aug 2022, 8:32 AM
TeaserCode
+ 1
Ok then, for me it works fine
24th Aug 2022, 8:34 AM
dottxt | off
dottxt | off - avatar
+ 1
If u wanna round both up & down, u can use round() method from cmath
24th Aug 2022, 8:39 AM
dottxt | off
dottxt | off - avatar
0
Why do you need it?
24th Aug 2022, 8:34 AM
TeaserCode