A for loop would be a good choice in this case.
To give you a head start:
#Take the smallest and largest numbers in input
for(float i = smallest ; i <= largest ; i = i+6 ){
#do your calculations
#Print out the number , endline
}
A for loop would be a good choice in this case.
To give you a head start:
#Take the smallest and largest numbers in input
for(float i = smallest ; i <= largest ; i = i+6 ){
#do your calculations
#Print out the number , endline
}