title: Program Octal Decimal Conversion
signature: def program_octal_decimal_conversion(n):
source_py: def program_octal_decimal_conversion(n):
      num = n
      dec_value = 0
      base = 1
      temp = num
      while temp:
          last_digit = (temp % 10)
          temp = int((temp / 10))
          dec_value += (last_digit * base)
          base = (base * 8)
      return dec_value
source_cpp: int program_octal_decimal_conversion(int n) {
    int num = n;
    int dec_value = 0;
    int base = 1;
    int temp = num;
    while ( temp ) {
      int last_digit = temp % 10;
      temp = temp / 10;
      dec_value += last_digit * base;
      base = base * 8;
    }
    return dec_value;
  }
question_info.test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return actual == expected
  
  def driver(n, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              n),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(37, 31)
      print(f"TEST-0...{result}")
  
      result = driver(25, 21)
      print(f"TEST-1...{result}")
  
      result = driver(63, 51)
      print(f"TEST-2...{result}")
  
      result = driver(66, 54)
      print(f"TEST-3...{result}")
  
      result = driver(32, 26)
      print(f"TEST-4...{result}")
  
      result = driver(5, 5)
      print(f"TEST-5...{result}")
  
      result = driver(41, 33)
      print(f"TEST-6...{result}")
  
      result = driver(82, 66)
      print(f"TEST-7...{result}")
  
      result = driver(54, 44)
      print(f"TEST-8...{result}")
  
      result = driver(5, 5)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.entry_fn_name: program_octal_decimal_conversion
question_info.test_list: [{"idx": 0, "outputs": 31, "inputs": {"n": 37}}, {"idx": 1, "outputs": 21, "inputs": {"n": 25}}, {"idx": 2, "outputs": 51, "inputs": {"n": 63}}, {"idx": 3, "outputs": 54, "inputs": {"n": 66}}, {"idx": 4, "outputs": 26, "inputs": {"n": 32}}, {"idx": 5, "outputs": 5, "inputs": {"n": 5}}, {"idx": 6, "outputs": 33, "inputs": {"n": 41}}, {"idx": 7, "outputs": 66, "inputs": {"n": 82}}, {"idx": 8, "outputs": 44, "inputs": {"n": 54}}, {"idx": 9, "outputs": 5, "inputs": {"n": 5}}]
question_info.entry_cls_name: Solution