Is there any function that allows me to check if x is divisible by any number? I need to write a repeat loop with integers from 1: 100, and also use if the function writes all numbers divisible by 7 from this range. Here is what I got so far:
x <- 1 repeat { print(x) x = x+1 if (x > 100) { break } }
It prints only the first part of what I need.
source share