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

 

fund_howManyCarsCanYouMake


To build a car, you need 1 chassis (body) and 4 wheels. Given an integer of how many chassis and wheels you are given, return how many complete cars that you can build!


fund_howManyCarsCanYouMake(1, 4) → 1
fund_howManyCarsCanYouMake(2, 4) → 1
fund_howManyCarsCanYouMake(3, 8) → 2

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

public int fund_howManyCarsCanYouMake(int chassis, int wheels) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy