+ 4
Can anyone tell me why the Output is 10?
public class Program { public static void main(String[] args) { int r=Integer.parseInt("1010",2); System. out.println (r); } }
3 Respostas
+ 3
Thanks Martin Taylor
0
1010 is binary number for 10 so your output is 10