fork download
  1. Public Class DecToBin
  2. {
  3. public static void main (String[] args) throws java.io.IOException
  4. {
  5. int first=(int)args[0]
  6. int[24] bin
  7. int i=0
  8. int count=23
  9. divide:
  10. bin[i]=(int) first/(2^count)
  11. first=first%(2^count)
  12. i++=
  13. count--=
  14. If count>-1 Then
  15. Goto divide
  16. Endif
  17. System.out.println(bin[])
  18. }}
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: class, interface, or enum expected
Public Class DecToBin
^
Main.java:3: class, interface, or enum expected
public static void main (String[] args) throws java.io.IOException
              ^
2 errors
stdout
Standard output is empty