import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static String findBinary(int num, String result) {
if(num == 0)
return result;
result = num % 2 + result;
return findBinary(num / 2, result);
}
public static void main (String[] args) throws java.lang.Exception
{
System.out.println(findBinary(12, ""));
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter