Computer Science, asked by arorasugandhi36, 8 months ago

Using the switch case statement write a menu driven program to do the following :
To generate and print letters from A to Z and their Unicode
Letters Unicode
A 65
B 66
. .
. .
. .
Z 90

Please answer this question ​

Answers

Answered by anindyaadhikari13
18

Question:-

Write a program to generate and print letters from a to Z along with their unicode.

Code:-

class Letters

{

public static void main(String args[])

{

for(char ch='A';ch<='Z';ch++)

{

int a=(int)ch;

System.out.println(ch+"\t"+a);

}

}// end of main()

}// end of class

Similar questions