Write a script that prints the following diamond shape. You may use output statements that print a single asterisk (*), a single space or a single newline character. Maximize your use of repetition (with nested for structures) and minimize the number of output statements.


```

1

2

3

4

5 Solution: 15.16

6

7

34

35

36

37

```



Computer Science & Information Technology

You might also like to view...

Which value can be entered to cause the following code segment to display the message "That number is acceptable"?

``` int number; cin >> number; if (number > 10 && number < 100) cout << "That number is acceptable.\n"; else cout << "That number is not acceptable.\n"; ``` a. 100 b. 10 c. 99 d. 0 e. all of these

Computer Science & Information Technology

The three types of task execution are:

What will be an ideal response?

Computer Science & Information Technology

A special value that marks the end of a list of input data is called a __________.

a. terminal value b. sentinel value c. loop control value d. input value e. loop termination value

Computer Science & Information Technology

The original ARPANET had only four locations, called ________

Fill in the blank(s) with correct word

Computer Science & Information Technology