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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!