Problem 45241. Question 1
Implement a function named q1 with one input argument named n. This function should return the multiplication of all odd numbers between 1 and n, where n is a positive integer. If n is not a positive integer, the output of this function should be the logical false.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
Project Euler: Problem 1, Multiples of 3 and 5
3482 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2376 Solvers
-
Set the array elements whose value is 13 to 0
1416 Solvers
-
873 Solvers
-
Find the Oldest Person in a Room
19641 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!