import java.util.Scanner;
public class Binary {
public static void main(String[] args)
{
Scanner
scanner = new Scanner(System.in);
System.out.print("Nhap n =
");
int n =
scanner.nextInt();
System.out.print(DecimalToBinary(n));
}
public static String
DecimalToBinary(int n) {
String
output = "";
int du = 0;
while (n > 0) {
du
= n % 2;
n
= n / 2;
output
= du + output;
}
return output;
}
}