Cody

Solution 1637853

Submitted on 4 Oct 2018 by Raghunandan V
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
assert(isequal(times2(1),2));

"The value of x is " x = 1 "The value of y is" y = 2

2   Pass
assert(isequal(times2(11),22));

"The value of x is " x = 11 "The value of y is" y = 22

3   Pass
assert(isequal(times2(-3),-6));

"The value of x is " x = -3 "The value of y is" y = -6

4   Pass
assert(isequal(times2(29),58));

"The value of x is " x = 29 "The value of y is" y = 58

Suggested Problems

More from this Author95