Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Hexa
- {
- public static void main(String args[])
- {
- Scanner input = new Scanner( System.in );
- System.out.print("Angka : ");
- int num =input.nextInt();
- String str = Integer.toHexString(num);
- System.out.println("Hexadecimal: "+str);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment