+ 1

Conversion

Write a program to convert octal no. to decimal no. having the capability to check whether the entered no. is not having any digit more than 7......

23rd Sep 2018, 1:44 AM
mn121
mn121 - avatar
2 Answers
+ 1
Python will convert an oct to decimal easily here is example: decimal to octal- oct(42) #052 octal to decimal- int('052',8) #42
23rd Sep 2018, 8:53 PM
George Ryan
George Ryan - avatar
+ 1
thanks
24th Sep 2018, 12:22 AM
mn121
mn121 - avatar