





'''simple docstring'''

import math







def 							UpperCAmelCase_    (	lowerCAmelCase_							):

				"""simple docstring"""






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







def 							UpperCAmelCase_    (	):

				"""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'''

# This is the module that test_patching.py uses to test patch_submodule()

import os  # noqa: this is just for tests
import os as renamed_os  # noqa: this is just for tests
from os import path  # noqa: this is just for tests
from os import path as renamed_path  # noqa: this is just for tests
from os.path import join  # noqa: this is just for tests
from os.path import join as renamed_join  # noqa: this is just for tests


__lowerCamelCase : Any											=			open  # noqa: we just need to have a builtin inside this module to test it properly




