#include <stdio.h>int main(){ long int t,x,y,ret=0; printf("底和真数:\n"); scanf("%d%d",&x,&y); t=y; while(y>x) { y/=x; ret++; } printf("log %d of %d is %d",x,t,ret); return 0;}