who can solve it?

write a program to print out the value of ln(x) and log(x) for any three diffrent values of X
1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;
int main()
{
  double x;
  cin >> x;
  cout << log(x);
}
Last edited on
Topic archived. No new replies allowed.