Question: 1 . Create a variable using sample ( ) that contains 1 0 0 random numbers from 1 - 1 0 0 . Display numbers.

1. Create a variable using sample() that contains 100 random numbers from 1-100.
Display numbers.
Find sum of all even numbers and product of all odd numbers without scientific notation.
using:
- For Loop
- If-else
solved in R

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