import java.util.Scanner;
public class BinarytoDecimal {
public static void main(String[] args) throws Exception {
Scanner br = new Scanner(System.in);
System.out.println("Enter the binary value:");
String s = br.nextLine();
System.out.println("Decimal value is : "+Integer.parseInt(s, 2));
}
}
i want to study this program coz it is related to our subject in logsign... i wish you can help me guys...

New Topic/Question
Reply



MultiQuote








|