static void Dec2Bin(){
        System.out.println();
        System.out.print("Please enter a decimal (integer) number: ");
        
        String binary = "";
        int decimal = s.nextInt();
        double temp = decimal;
        int logarithm = (int)Math.sqrt(decimal) + 1;
        
        System.out.println(logarithm);
        
        for(int i = logarithm; i >= 0; i--){
            if(temp == 1 && i != 0){
                binary += "0";
            }
            else if(Math.pow(2,i) > temp){
                System.out.println(temp);
                binary += "0";
            }
            else{
                System.out.println(temp);
                binary += "1";
                temp -= Math.pow(2,i);
            }
        }
        
        System.out.println("The binary of decimal " + decimal + " is " + binary);
    }