numero decimal a binario, octal, hexadecimal aplicacion

import java.util.*; public class Apliconversiones { public static void main (String[] args) { Scanner sc=new Scanner(System.in); int x; String bin; String oct; String hexa; System.out.println("teclea el numero a convertir"); x= sc.nextInt(); Conversiones e1= new Conversiones(); e1.set_numero(x); bin=e1.ConvBinario(); oct=e1.ConvOctal(); hexa=e1.ConvHexa(); System.out.println("Binario= "+bin); System.out.println("Octal= "+oct); System.out.println("Hexadecimal= "+hexa); } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.