help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parse Error


From: Doug Stewart
Subject: Re: Parse Error
Date: Thu, 22 Sep 2016 22:13:12 -0400


 function collatz3(n)

 loopcount=0;

 while n ~= 1
   loopcount=loopcount + 1;
   if mod(n,2)==0
     n=(n/2)
   else
     n=((n*3)+1)
   endif;

 endwhile;

 loopcount
 endfunction;


--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]