הנה..
PrintSandWatch(Integer topLineLength, Integer howFarFromMargin) { if (topLineLength == 0) return draw a line with "topLineLength" asterixes that starts at "howFarFromMargin" PrintSandWatch(Integer topLineLength - 2, Integer howFarFromMargin + 1) draw a line with "topLineLength" asterixes that starts at "howFarFromMargin" }
יכול להיות שנפלו פה טעויות, אבל זה הרעיון