RosettaCodeData/Task/Loops-Do-while/Mathematica/loops-do-while-1.math

8 lines
82 B
Plaintext

value = 5;
NestWhile[
# + 1 &
,
value
, (Print[#]; Mod[#, 6] != 0) &
];