Created
May 13, 2020 13:14
-
-
Save ilhamarrouf/379a1810341f012e195c8950b432f662 to your computer and use it in GitHub Desktop.
Program to print ASCII Value of a character
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AsciiValue { | |
public static void main(String[] args) { | |
int x; | |
for (x = 0; x <= 255; x++) { | |
System.out.println("The ASCII value of " + String.format("%c", x) + " is: " + String.format("%d", x)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment