Loops/While: Difference between revisions

Content added Content deleted
Line 89: Line 89:
print n
print n
n = n / 2</python>
n = n / 2</python>

=={{header|UnixPipes}}==
(echo 1024>p.res;tail -f p.res) | while read a ; do
test $a -gt 0 && (expr $a / 2 >> p.res ; echo $a) || exit 0
done



=={{header|V}}==
=={{header|V}}==