有没有人能写个O(lgN)的效率的?
#include<stdio.h>
main()
{
int m,n,i;
printf("please enter the number m:");
scanf("%d",&m);
printf("please enter the number n");
scanf("%d",&n);
for(i=0;i<n-1;i++)
m=m*m;
printf("the result is:%d\n",m);
}