Describe in general how you would remove any continue statement from a loop in a program and replace that statement with some structured equivalent. Use the technique you developed here to remove the continue statement from the program of Fig. 15.12.

What will be an ideal response?


```
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <HTML>
3 <!-- Ex 15_20.html -->
4
5 <HEAD>
6 <TITLE>Solution: 15.20</TITLE>
7
8 <SCRIPT LANGUAGE = "JavaScript">
9 for ( var count = 1; count <= 10; ++count ) {
10 if ( count == 5 );
11 else
12 document.writeln( "Count is: " + count + "<BR>" );
13 }
14
15 document.writeln( "skipped printing 5" );
16 </SCRIPT>
17
18 </HEAD><BODY></BODY>
19 </HTML>

```

Computer Science & Information Technology

You might also like to view...

Which of the following describes an IPv6 link -local address assigned to a node on a network?

A. An address used to deliver messages to all participating nodes in a multicast group with prefixes that begin with FF00::/8. B. A private unicast address assigned by a DHCPv6 server used to communicate with neighboring nodes across subnets. C. A global address that is routable on the public Internet and assigned by an Internet service provider. D. A private unicast address used for limited communication with neighboring nodes in the same link.

Computer Science & Information Technology

Once you run an action query, you are committing yourself to an irreversible change

Indicate whether the statement is true or false

Computer Science & Information Technology

A toolbar with common formatting commands is the ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

_____ is a combination of online research tools that provides online-based information services in subject areas such as business, science, engineering, finance, and law and in a format to meet the needs of a wide range of users.

A. ?Dow Jones Factiva B. ?Google Books C. ?Project Gutenberg D. ?ProQuest Dialog

Computer Science & Information Technology