Quiz 1 (Red Test)

 

1.1.        Read in 20 integers and compute the sum of these integers.

1.2.        Read in 20 integers into an array and then print the numbers out in reverse order.

1.3.        Write a program to print out the following 9 x 9 pattern:

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

*

 

 

*

 

 

 

 

 

*

 

 

 

 

*

 

 

 

*

 

 

 

 

 

 

*

 

*

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

*

 

*

 

 

 

 

 

 

*

 

 

 

*

 

 

 

 

*

 

 

 

 

 

*

 

 

*

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

1.4.        Write a program to print out the following 9 x 9 pattern:

 

 

 

 

 

 

 

 

 

 

 

*

*

*

*

*

*

*

*

*

 

 

*

*

*

*

*

*

*

 

 

 

 

*

*

*

*

*

 

 

 

 

 

 

*

*

*

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

*

*

*

 

 

 

 

 

 

*

*

*

*

*

 

 

 

 

*

*

*

*

*

*

*

 

 

*

*

*

*

*

*

*

*

*

 

 

 

 

 

 

 

 

 

 

1.1.        Redo problem 1.4 except the block is m x m, where m is typed in by the user.