#include <stdio.h>
int main()
{
int n,count=0;
scanf("%d",&n);
printf("Enter the value of n");
printf("The value of n=%d\n",n);
while(n>=2){
n=n/2;
count++;
}
printf("The number of times the n got divided by 2=%d\n",count);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: