Academic coaching, editing, and research guidance for university students.

c programming , collatz series, programming assignment help

1 min read
  

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

Academic integrity note

Use this educational resource to build your understanding. Follow your institution’s rules and cite sources appropriately.

Want feedback on your own work?

Request Academic Support

Leave a Reply

Your email address will not be published. Required fields are marked *