Please who can help me with this answer binary converter | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please who can help me with this answer binary converter

import java.util.Scanner; //your code goes here public class Program { public static void main(String[ ] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); System.out.print(Converter.toBinary(x)); } }

22nd Mar 2022, 9:38 AM
MR KINGSHOW
MR KINGSHOW - avatar
2 Answers
0
MR KINGSHOW class test { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); System.out.print(Integer.toBinaryString(x)); } }
22nd Mar 2022, 2:49 PM
B.VIDYADHAR VIJJU
B.VIDYADHAR VIJJU - avatar
0
The above code will give binary of any integer For more information on coding follow the below Instagram page Anonymous_me_0000
22nd Mar 2022, 2:50 PM
B.VIDYADHAR VIJJU
B.VIDYADHAR VIJJU - avatar