anged disp for printf
end
--
View this message in context:
http://mailinglists.scilab.org/Scilab-users-linking-jumping-from-line-of-code-to-an-other-tp4036375p4036403.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
___
Dear Tim,
thanks for your answer. I have already the trouble of
handling the code from last autum. In the moment I have written my exam,
my boss has the trouble all to himself.
I will still use your advice.
Unfortuanlly I had to learn in a few weeks coding on myself. It's surely
easy to see
Jumps are generally bad style; I don't know if Scilab even supports
them. If it does I advise you not to use them for something this
trivial (error handling is the only place I've seen them seriously
recommended, and even there they can be very problematical -- it's why
people invented exceptions)
The Solution is: Using whil:
i = 1
a = 1
while i < 5
disp(i)
a
= a + 1
i = i +1
if a == 3 then
i = i - 1
end
end
Am 2017-05-12
11:15, schrieb Frieder Nikolaisen:
> Hello,
>
> another question to
solve the locomotive stuff, giving you a example with the not implented
code.
>
>
Hello,
another question to solve the locomotive stuff, giving you
a example with the not implented code.
I don't want to code the same
stuff twice. Thats why I want to jump between lines of code. Is this
possible and how?
P = 200;
DM = 1;
for n = 1:10
if DM == 1 then
if
P > 100 then DM