Adding a string as a visual to my code for a function

后端 未结 0 1460
悲哀的现实
悲哀的现实 2021-01-27 02:48

I\'ve written the following function for a Collatz problem:

int collatz(int n){
    int steps = 0;
    do{
    if (n%2==0){
        n=n/2;
        steps++;
    }
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题