Answer the question
In order to leave comments, you need to log in
Can you please explain the code in detail?
I have this code, can you tell me what it does
if(number <= 0) return 1;
double multi_factor = 1;
std::cout << std::endl;
while((buffer = number * multi_factor) >= 1){
std::cout << buffer << " ";
multi_factor /= 2;
if(buffer % 2 != 0) break;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question