CSC 210

Week 9


Topics:


Assignment:

For the problems below, please submit your R codes and their outputs.
Please visit rforbiologists.org   and do the following Exercises on this website:

Conditionals and loops- Exercises III: Problems 1, 2, 3.

Write an R code that asks the user to enter an integer. Your code should print out whether the number is odd or even. You should use the %% operator of R. a%%b gives the remainder of the division a/b. For example: 21%%2 is 1, but 22%%2 is 0.