Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*This program finds the ascii value of any number entered by user*/
- import java.util.*
- class ASCII
- {
- public static void main(String args[])
- {
- Scanner sc=new Scanner(System.in);
- char ch=(sc.next()).charAt(0);
- int asc=ch;
- System.out.println("ascii of "+ch+" is "+asc);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement