cat("This program will simply print the numbers from 1 to 10\n") for(i in 1:10) { print(i) } cat("Then it will do the same, again\n") i=1 # Now I will use while while(i <= 10) { print(i) i=i+1 }