Из алгебры: loga(b) = ln(a) / ln(b)
в C++:
#include <iostream>
#include <cmath>
int main()
{
unsigned int A, B;
std::cin >> A >> B;
std::cout << "log a (B) = " << std::log(a) / std::log(b) << std::endl;
return 0;
}
Из алгебры: loga(b) = ln(a) / ln(b)
в C++:
#include <iostream>
#include <cmath>
int main()
{
unsigned int A, B;
std::cin >> A >> B;
std::cout << "log a (B) = " << std::log(a) / std::log(b) << std::endl;
return 0;
}