Cody

Problem 143. Cannon Ball

Solution 1993726

Submitted on 28 Oct 2019 by Sofya Belov
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
g=32; h=10000; v_correct = 800; assert(isequal(canon(g,h),v_correct))

v = 800

2   Pass
g=32; h=100; v_correct = 80; assert(isequal(canon(g,h),v_correct))

v = 80

3   Pass
g=32; h=4; v_correct = 16; assert(isequal(canon(g,h),v_correct))

v = 16

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!