How many times will the following code print out the message?
```
S t r i n g message = ” I w i l l be good ! ” ;
f o r ( i n t i = 1 ; i <= 5 ; i ++) {
f o r ( i n t j = 1 0 ; j > 0 ; j ??) {
System . out . p r i n t l n ( message ) ;
}
}
```
It will print out the message 50 times. The outer loop executes 5 times with i changing from 1 to 5 and the inner loop executes 10 times with the j changing from 10 to 1. So the total is 5 * 10 = 50.
You might also like to view...
Replacing one selected word or phrase when Track Changes is active results in two changes
Indicate whether the statement is true or false
When checking the width of the gutter, which of the following contains the Gutter value?
A. Gutter Value dialog box B. Margins and Columns dialog box C. Body / Text dialog box D. Location dialog box
You can examine all of the changes and comments in the document one at a time
Indicate whether the statement is true or false
Which of the following is NOT true about printing a document?
A. When you click the Print button in Backstage view, the content in the active window is sent directly to the printer. B. You can specify the number of copies and range of pages to print. C. Most print options vary widely for different applications. D. The print settings are displayed in Backstage view.