id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > funnyVolume
prev  |  next  |  chance

For this method, you are passing in the side lengths of two cubes. The first length is the larger cube. Return the volume of the solid that results from removing the smaller cube from a corner of the bigger cube. Each cube will have a volume less than the maximum integer value.


funnyVolume(15, 14) → 631
funnyVolume(11, 4) → 1267
funnyVolume(18, 6) → 5616

...Save, Compile, Run (ctrl-enter)

public int funnyVolume(int a, int b) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 440

Copyright Nick Parlante 2017 - privacy