16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

With these instructions, bc displays<br />

The value of foo is 15<br />

statement ; statement ...<br />

Is a sequence of statements on the same line. In bc, a semicolon (;) and a<br />

newline are equivalent. They both indicate the end of a statement. bc runs<br />

these statements in order from left to right.<br />

{statement}<br />

Is a brace-bracketed statement. Brace brackets are used to group<br />

sequences of statements together, as in:<br />

{<br />

statement<br />

statement<br />

...<br />

}<br />

Brace brackets can group a series of statements that are split over several<br />

lines. Braces are usually used with control statements like if and while.<br />

break Can be used only inside a while or for loop. break ends the loop.<br />

for (initexp ; relation ; endexp) statement<br />

Is equivalent to:<br />

initexp<br />

while (relation) {<br />

}<br />

statement<br />

endexp<br />

where initexp and endexp are expressions and relation is a relation. For<br />

example:<br />

a = 0<br />

for (i = 1; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!