Q:

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

0

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

The ASCII value of Z is :90

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

public class Exercise41 {

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

Sample Output:

The ASCII value of Z is :90

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now