how can I use exponent function | Sololearn: Learn to code for FREE!

0

how can I use exponent function

c++

7/11/2016 5:22:46 PM

AN!KET BHAVSAR

2 Answers

New Answer

+1

I think you cant use exponential function. But you can use power function by introducing math header file. For eg pow(value, its power)

0

This is what I do; #include <iostream> using namespace std; #define _USE_MATH_DEFINES #include <cmath> Then use pow(x, y) with x being the value and y being the power. It always works for me