the program can never run, because n is less than one. n-- means use n, then subtract one, but --n means subtract one from n, and then use n. so for (n = 1; n >= 1; --n) means that n is 0, and therefore, for (count = 1; count <= n; ++count) can never work, because count is 1, and greater than 0