sum = 0; |
x = 0; |
x = 0; |
x = 0.33333333; |
sum = 0; |
x = 1; |
outputBox is an OutputBox object.
int a = 5, b = 3;
for (int i = 0; i < 4; i++) {
a += i;
switch (a % 4) {
case 0: outputBox.printLine("zero");
break;
case 1: outputBox.printLine("one");
case 2: outputBox.printLine("two");
break;
default: outputBox.printLine("three");
break;
}
}
inputBox is an InputBox object.outputBox is an OutputBox object and that the variables
row and col are ints holding the number
of rows and columns, respectively.
For example, if row = 5 and col = 8, the following
should be printed out:******** * * * * * * ********