Question: Write an R function, productTen(x) using a for loop that receives a vector x and returns the product of all the values in the vector
Write an R function, productTen(x) using a "for" loop that receives a vector x and returns the product of all the values in the vector that are multiplies of 10.
Test the function with the following sample
C(10, 12, 14, 20, 25, 30, 6)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
