154k views
0 votes
Write a C++ program that takes two numbers and uses the pow() fuction to illustrate exponentials in Visual Studio.

i.e
cout: 2^4 =16

User Shastri
by
7.8k points

1 Answer

4 votes

Answer:

int main()

{

std::cout << pow(2, 4);

}

Step-by-step explanation:

The ^ operator exists, but has a different meaning in C++, it means XOR. So be careful not to misinterpret it.

User Eistrati
by
7.7k points