Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Engineering Mathematics

Authors: Erwin Kreyszig

7th Edition

471553808, 978-0471553809

More Books

Students also viewed these Mathematics questions