Count trailing zeros in a primorial
<https://www.mathworks.com/matlabcentral/cody/problems/44068-the-number-of-trailing-zero-digit-of-a-factorial Cody Problem 44068...
Area of a pentagon
Given the side of a regular pentagon and its apothem return the area of pentagon.
Remember the area of pentagon is calculate ...
3 years ago
Solved
Let's create histogram data by yourself.
We'd like to create histogram data, which first column shows the data, and second column shows the frequency.
input = [1, 2, 1,...
3 years ago
Solved
Compute the harmonic numbers
The nth <https://mathworld.wolfram.com/HarmonicNumber.html harmonic number> is defined as the sum of the reciprocals of the inte...
3 years ago
Solved
Find the position of planet in solarsystem
Write a funtion named *nthplanet* which takes name of the planet as input string and provides the position of the planet, starti...
3 years ago
Solved
Flag a convertible string
If a string is able to be entirely converted to an integer, return a "true" flag. Otherwise, return a false flag. For example:
...
Polygon Interior Angle Sum
Given the number of sides of a regular polygon, find the sum of interior angles.
Return 0 for input for which regular polygon a...
3 years ago
Solved
Convert Angstrom to Meters
Write a code that converts the angstrom unit to meters.(A is angstrom and m is meters.)
Given A4 sizes find A3's long side
I think you know the relation between A3 and A4 paper so givens are sides of A4
x1=long side of A4
y1=short side of A4
y2 is ...