Main»Homework 1

Homework 1

Homework

  • First, write a function to calculate factorial.

  • Calculate factorial for input numbers from 1 to 20

  • Output your result to a CSV file. Your file name should "lastname.hw1.csv".

  • Save your code as "lastname.hw1.R"

  • Email both files to hong dot qin at yahoo dot com