Java program to convert octal to decimal


Program
import java.util.*; public class OctalToDecimal{ public static void main(String args[]){ Scanner s=new Scanner(System.in); String octal=s.next(); int decimal=Integer.parseInt(octal,8); System.out.println(decimal); }}
Input
Output