Question: How to do the following or type it in R studio. Thanks in advance! 3 ) Use a for loop to print out the name

How to do the following or type it in R studio. Thanks in advance!
3) Use a for loop to print out the name of the city where you are
from 10 times.
4) Write a new function called fact in R which computes the
factorial of a positive integer. The factorial function is defined as
follows:
x!=1\times 2\times 3\times \times x, where x is a positive integer.
For example, 3!=1\times 2\times 3=6.
You may use a while loop when coding the function.

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