C++ codes only.
1. Write a function called ten2one(), that takes no input parameters, and returns nothing (void). The body of the function must include a loop that counts from 10 down to 1, printing the count value each time in the loop. The output should look like (notice the spacing): 10 9 8 7 6 5 4 3 2 1 Call this function from main().
2. Write a function called hundredByFives() that takes no input arguments and returns nothing. The body of the function must include a loop that counts from 5 to 100 by fives, printing the count in each iteration. The output should look like: 5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 Notice the commas. Notice that there is no comma at the beginning or end. That means that you must do something special either at the beginning or at the end. The easiest solution is to do something special at the beginning.
3. Write a function called countDown() that takes an integer parameter as input but returns nothing. (Takes an integer parameter"means declare an int variable between the parens of the function, and put a value between the parens when you call it. It does not mean put a cin in the function.) The body of the function should count down, starting with the number that was passed and ending with 0. Call this function from main, twice, each time with a different value.
4. Write another function called countUp(), like countDown(), that also takes an integer parameter but starts at 1 and counts up to the number that was passed.
5. If you have not already done so, output a new line after each function call so that each function outputs on its own line (as opposed to everything appearing on one very long line).