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

8 lines
82 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
value = 5;
NestWhile[
# + 1 &
,
value
, (Print[#]; Mod[#, 6] != 0) &
];