How to write the code which uses exponent operators?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to write the code which uses exponent operators??

22nd Jul 2018, 9:18 AM
Nguyễn Quang Huy
Nguyễn Quang Huy - avatar
3 Answers
+ 1
std::pow method available in cmath header
22nd Jul 2018, 9:31 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 1
#include <iostream> #include <cmath> using namespace std; int main() { cout<<pow(2,3); return 0; }
22nd Jul 2018, 9:42 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
0
can you write the whole code??
22nd Jul 2018, 9:35 AM
Nguyễn Quang Huy
Nguyễn Quang Huy - avatar