Example 24: Base Conversion

Learn how to convert an integer from decimal to its equivalent octal base.

Problem

Write a program that receives a positive integer and returns its octal equivalent.

Demonstration

Get hands-on with 1400+ tech skills courses.