Finding an element in a vector
x is a vector of unknown length
your function should return the index of the first element in the vector that is greater than...
Percentage profit
If you are buying at x dollar, what will be the selling price for making the r% profit?
2年以上 前
解決済み
metre to feet converter
The idea is to make a converter, which exchange meters to feets.
We use a factor of 1m = 3.281*1f.
so 3m are equals to 9.843 m...
Kelvin to Fahrenheit
You can find a doc about it in here => https://www.rapidtables.com/convert/temperature/how-kelvin-to-fahrenheit.html
x is kelvi...
Total resistance of resistors in parallel
What is the total resistance of a number of resistors in parallel?
A vector R contains the resistances (in Ohm) of n resistors,...
2年以上 前
解決済み
Fizz
Dado um número inteiro n, retorne 'fizz' se esse valor for multiplo de 3, ou retorne o valor caso contrario.
Fizz(3) = 'fizz';
...