Write a Java program to print the ascii value of a given character
Write a Java program to print the ascii value of a given character

Program



public class Main {
 
 public static void main(String[] args) {
	 int chr = 'A';
     System.out.println("The ASCII value of A is :"+(int)chr);
 }
}

Output:

The ASCII value of A is :65

For latest job updates join Telegram Channel: https://t.me/sateeshm

Programs