next up previous
Next: Array Initialization Up: Arrays Previous: Arrays

Activity

1.
rewrite the second example in the switch section by adding the break statement and run the program, write the output you see on the screen
2.
Write a program that will cause the to beep once if the user enters number 1 and beeps twice if the user enters 2 and so on till number 5. Hint use the switch statement.
3.
Write a program using arrays to print out an integer on one column and its square root on the second. The numbers goes from 0 to 20.


Yousef Haik
2/23/1998