help-octave
[Top][All Lists]
Advanced

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

Re: Is it correct to build a tree?


From: slaythemall
Subject: Re: Is it correct to build a tree?
Date: Wed, 15 Jun 2016 11:59:22 -0700 (PDT)

or a diamond:
n=4%// do zmiany
s=(n*2)-1;
st=n
en=n
for j=1:s
for i=1:s
if (i>=st)
if (i<=en)
printf("*")
endif
elseif printf(" ");
endif
endfor
if(j< n)
st--;
en++;
elseif 
st++;
en--;
endif
printf("\n");
endfor



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Is-it-correct-to-build-a-tree-tp4677739p4677740.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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