Hi,
I need to print out a set of numbers that starts at 2, prints out the next 2 numbers, skips the next 2, prints the next 2 and skips the next, etc....... so it should follow the pattern :
2 3 6 7 10 11 14 15 18 19 22 23 etc....
code i have so far...
for (int i =2; i<=255; i++){
//print out i
}
but... i know that this will only print out all the numbers in a row... Any help or suggestions would be great.
Thanks.