R Basics-12 - Coding- for() Loops in R (Hands On) - ClassiCoder.com - CLASSIC CODER #header (Ativar o PHP)

R Basics-12 - Coding- for() Loops in R (Hands On) - ClassiCoder.com

1.   FOR LOOP

Perform the following tasks:

1. Find the sum of all even numbers in the Vector V (passed as argument) using the For loop (both 80 and 100 inclusive) and assign it to variable ans.

2. Note: Function Structure is given as an unalterable code