decimal = 148
      octal = []
      while decimal > 0:
          r = decimal % 8
          octal.append(r)
          decimal = decimal // 8
      for i in reversed(octal):
          print(i, end="")
      
      Python language logo

      Decimal to octal conversion

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.