convert decimal to binary using inbuilt function
package testpacknm; import java.util.Scanner; public class testcnm { public static void main(String[] args) { int dNum = 5; System.out.println("Binary is: " + Integer.toBinaryString(dNum)); } }
package testpacknm; import java.util.Scanner; public class testcnm { public static void main(String[] args) { int dNum = 5; System.out.println("Binary is: " + Integer.toBinaryString(dNum)); } }