Question: The question states to use the for loop not the while loop. Could you please help in answering in the correct loop format? I asked

The question states to use the for loop not the while loop. Could you please help in answering in the correct loop format? I asked a few minutes ago and was given an incorrect answer.

Basic R finance

You start with the following code and then complete the next lines:

n <- seq(from = 3, to = 34)

Print even numbers from 3 to 34 using the for loop. Hint: you can use modulo (%%) in Chapter 1

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 Finance Questions!