+ 1

#help Calculate 3 or more cube volume using 'function'

how to calculate total from 3 volume of cube using function, but without declaring parameter (arguments) ex: cube 1 = 3*3*3 //27 cube 2 = 6*6*6 //216 cube 3= 2*2*2 //8 total is = 251 can someone give me an code or algorithm ?

23rd Apr 2018, 8:24 AM
Lian
Lian - avatar
2 Respostas
+ 2
It's a*a*a+b*b*b+c*c*c.
23rd Apr 2018, 10:51 AM
Timon Paßlick
23rd Apr 2018, 8:36 AM
Akib
Akib - avatar