What if the n = 0. This code won't print "zero"

I would like to know the solution where even when n = 0, the code has to print “zero”.