Try to search your question here, if you can't find : Ask Any Question Now ?

How to print alphabet of ascii value

HomeCategory: stackoverflowHow to print alphabet of ascii value
Avatarwillson asked 4 months ago

Actually I wanted output like that now
eg:
Enter the digit
66
67
68
69
convert
66-A
67-B
68-C
69-D

i am getting output like this
66
66-A
67
67-B
68
68-C

for (int i = 0; i < 4; i++) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    System.out.println(n + "-" + (char) c);
}
1 Answers
Best Answer
Avatarnaveen answered 4 months ago
Your Answer

18 + 16 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com