Java
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter ASCII value (0-127): ");
int code = sc.nextInt();
char ch = (char) code;
System.out.println("Character for ASCII " + code + " = " + ch);
sc.close();
}
}Output
Enter ASCII value (0-127): 65 Character for ASCII 65 = A
We cast the integer value to char to obtain the corresponding character.