Answer & Explanation:I wrote this code that is suppose to give the collatz series of the numbers from the user.the program should be able to take infinite number of arguments and then prints each number in a line followed by a colon followed by the collatz series of that number separated by a space with no leading spaces.I still couldn’t figure out how to take many arguments from the user. I know I have to use a while loop but I don’t know what to write inside it.   #includeint collatz(int x, int y){ // base case if(y

Order your essay today and save 10% with the discount code ESSAYHELP