I want to make an arithmetic sequence in a if statement using the contain framework. So instead of writing the in statement like
if [ 30, 60, 90,120].contains(score) {
print(“Winner”)
}
I want to write a equation that has the arithmetic sequence goes on for 10 times. So in the sequence it should 30,60,90,120,150,180,210,240,270,300. I would think there is a way to write the if statement to do this.