Any questions do not hesitate to contact.
#include <bits/stdc++.h>
using namespace std;
int main(){
int n; scanf("%d",&n);
while(n--){
int num; scanf("%d",&num);
for(int i=0; i<35;i++){
if(pow(2,i)>=num) { printf("%d\n",i); break;}
}
}
return 0;
}
Keep in touch with Isaac Lozano Osorio!