This post has NOT been accepted by the mailing list yet.
I have to do this exercise for an interview on Monday 4: "Write an R script that plots the numbers from 1 to 100 (e.g. along the diagonal of a plot) in black colour. But for multiples of a=2, colour the point in red; and for multiples of b=3, colour the point in blue. For numbers which are multiples of BOTH a and b, colour the point in green. For any black point ONLY (i.e. not for coloured points), print the value of the number beside the point. Try to use at least one for loop, one if statement, and one function in your code." I did the exercise without the required for loop using this script: