[Tutor] Finding a nearest perfect cube
donsuni
donsuni at gmail.com
Thu Nov 7 23:25:29 CET 2013
Hi, I am new to python and i have to write a following code without using any
inbuilt function or a for loop. Only while and if loops are allowed.
If i input a number, i should get a perfect cube nearest to it.
For eg: if
input=4, output=8
input=8, output=27
and so on....
can some one help with the code?
--
View this message in context: http://python.6.x6.nabble.com/Finding-a-nearest-perfect-cube-tp5038336.html
Sent from the Python - tutor mailing list archive at Nabble.com.
More information about the Tutor
mailing list