

"""simple docstring"""




import math



def 	UpperCAmelCase__   (				A__   )      ->      str:




   """simple docstring"""
   lowerCamelCase__						=			0
   lowerCamelCase__						=			0
   while num > 0:
      lowerCamelCase__						=			num % 8
      lowerCamelCase__						=			octal + (remainder * math.floor(math.pow(10	,    A__   )   ))
      counter += 1
      lowerCamelCase__						=			math.floor(num / 8   )  # basically /= 8 without remainder if any
      # This formatting removes trailing '.0' from `octal`.
   return f'0o{int(A__   )}'



def 	UpperCAmelCase__   (				)      ->      None:




   """simple docstring"""
   print("\n2 in octal is:"   )
   print(decimal_to_octal(2   )   )  # = 2
   print("\n8 in octal is:"   )
   print(decimal_to_octal(8   )   )  # = 10
   print("\n65 in octal is:"   )
   print(decimal_to_octal(65   )   )  # = 101
   print("\n216 in octal is:"   )
   print(decimal_to_octal(216   )   )  # = 330
   print("\n512 in octal is:"   )
   print(decimal_to_octal(512   )   )  # = 1000
   print("\n"   )


if __name__ == "__main__":
     main()







"""simple docstring"""




# flake8: noqa
# Lint as: python3
SCREAMING_SNAKE_CASE_     :			Dict	  =			[
    '''VerificationMode''',
    '''Version''',
    '''disable_progress_bar''',
    '''enable_progress_bar''',
    '''is_progress_bar_enabled''',
    '''experimental''',
]

from .info_utils import VerificationMode
from .logging import disable_progress_bar, enable_progress_bar, is_progress_bar_enabled
from .version import Version
from .experimental import experimental




