R Basics-26 - Coding-Iterations-2 (Hands On) - ClassiCoder

Iterations

Perform the following tasks:

. Write a function sum_whole that find the sum of the first N (passed as arguments) whole numbers. Assign the result to the variable ans and return it.


Iterations-2-R-Basic



Iterations-2-R-Basic-Solution