개발자 뺚
[Cody] Problem 1. Times 2 - START HERE 본문
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Examples:
Input x = 2
Output y is 4
Input x = 17
Output y is 34
function y = times2(x)
y = 2 * x;
end
'Solution > MATLAB' 카테고리의 다른 글
[Cody] Problem 44944. Convert from Fahrenheit to Celsius (0) | 2023.08.23 |
---|---|
[Cody] Problem 128. Sorted highest to lowest? (0) | 2023.08.22 |
[Cody] Problem 44943. Calculate Amount of Cake Frosting (0) | 2023.08.22 |
[Cody] Problem 106. Weighted average (0) | 2023.08.22 |
[Cody] Problem 2447. Musical Note Interval 1 - Diatonic Scale (21) | 2023.08.22 |