Introduction
The upto and downto methods help you count up or down between numbers easily.
When you want to repeat something from a smaller number up to a bigger number.
When you want to count down from a bigger number to a smaller number.
When you want to run a loop a certain number of times with numbers.
When you want to print numbers in order, either increasing or decreasing.
When you want to perform an action for each number in a range without writing a manual loop.