Question: 1.) Write an R Program which iterates through the numbers 1 to 50. For multiples of two, print Beep instead of the number. For multiples

1.) Write an R Program which iterates through the numbers 1 to 50. For multiples of two, print "Beep" instead of the number. For multiples of three, print "Boop" instead of the number. For numbers which are multiples of both 2 and 3, print "BeepBoop" Sample output: 1 "Beep" "Boop" "Beep" 5 "BeepBoop" 2.) Write an R Program to print the following pattern in the console window: Sample output 3.) Write an R program that accepts a word from the user and reverses it. You may have to use the functions readline() or scan(), and substr() (10 pts) Input: reverse Sample output: The reverse of reverse is esrever.|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
