#include <stdio.h>
#include <math.h>
#include <math.h>
long double GetLog(long double x,long double y)
{
return log(y)/log(x);
}
{
return log(y)/log(x);
}
int main()
{
long double a,b;
printf("this programme is to computer log(a)b:/n");
printf("please input a:/n");
scanf("%lf",&a);
printf("please input b:/n");
scanf("%lf",&b);
printf("log(%lf)%lf=%f/n",a,b,GetLog(a,b));
getch();
return 0;
}
{
long double a,b;
printf("this programme is to computer log(a)b:/n");
printf("please input a:/n");
scanf("%lf",&a);
printf("please input b:/n");
scanf("%lf",&b);
printf("log(%lf)%lf=%f/n",a,b,GetLog(a,b));
getch();
return 0;
}