If you add the square of the digits of a Natural number (an integer bigger than zero), you always end with either 1 or 89: 15 -> 26 -> 40 ->

Continue Reading## C++: Middle Three Digits

The task is to: “Write a function/procedure/subroutine that is called with an integer value and returns the middle three digits of the integer

Continue Reading## C++: Binary Digits

The task is to output the sequence of binary digits for a given non-negative integer. The decimal value 5, should produce an output of 101 The deci

Continue Reading## C++: Harshad/Niven Series

The Harshad or Niven numbers are positive integers >= 1 that are divisible by the sum of their digits. For example, 42 is a Harshad number as 42

Continue Reading