fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. cout<<log2(10)<<"\n";
  7. cout<<log2(2)<<"\n";
  8. cout<<log2(64)<<"\n";
  9. cout<<log2(32)<<"\n";
  10. cout<<log2(16)<<"\n";
  11. cout<<log2(8)<<"\n";
  12. cout<<log2(4)<<"\n";
  13.  
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5532KB
stdin
Standard input is empty
stdout
3.32193
1
6
5
4
3
2