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
Expected Output

The ASCII value of Z is :90

الأجوبة

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
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...