PROGRAM BASED ON SWITCH CASE
Program 1: Using the switch-case statement, write a menu driven program to do the following:
(a) To generate and print Letters from A to Z and their Unicode
Letters | Unicode |
---|---|
A | 65 |
B | 66 |
. | . |
. | . |
. | . |
Z | 90 |
(b) Display the following pattern using iteration (looping) statement:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
No comments:
Post a Comment