Question: R programming, please. Suppose that we are given a divisor and a target count, and we need to find the range of number from 1

R programming, please.
Suppose that we are given a divisor and a target count, and we need to find the range of number from 1 that will have the target count of numbers divisible by the divisor. For example. If the divisor is 3 and the target count is 4 , the range is 1 to 12 , as in this range there are 4 numbers divisible by 3, viz. 3,6,9, and 12 . Use a while loop to find the ending number of the range within which we will have the target count of numbers that are divisible by the divisor. Then, print the result as shown below for divisor =13 and target count =5. "Between 1 and 65 there are 5 numbers divisible by 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
