Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
kmph to mps
convert kilometer per hour to meter per second
4年以上 前
解決済み
Let's make puddings !
We will make puddings with eggs, milk and sugar.
To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar.
Now W...
4年以上 前
解決済み
Area of a Square
Inside a square is a circle with radius r.
What is the area of the square?
4年以上 前
解決済み
Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.
4年以上 前
解決済み
Square a Number
Given an input x, return y, which is equal to the square of x.
4年以上 前
解決済み
only input
Return the output without writing any code into the function.
4年以上 前
解決済み
Check if sorted
Check if sorted.
Example:
Input x = [1 2 0]
Output y is 0