Java Program to count backward of a number using a do-while loop.

Output: