iitanox8222 iitanox8222
  • 23-08-2019
  • Computers and Technology
contestada

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

Respuesta :

tonb
tonb tonb
  • 23-08-2019

Answer:

int main()

{

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

}

Explanation:

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

Answer Link

Otras preguntas

cos A/1-tan A + sin A/1-cot A =sin A + cos A
How many times has Scotland hosted the commonwealth games
Fill in the blank : 1. Earth rotates from ______________ to ________________.
The Universal Law of Gravity states that the force of gravity acts between all objects. Nonetheless, you never feel that the fridge in your kitchen pulls you to
i know that earth is spinning very fast but why don't we fell  it spinning ?
if a sum borrowed under compound intrest doubles itsef in 10 years, when will it become four fold?
Explain why hydrogen and oxygen are considered elements whereas water is not considered an element.
Explain why hydrogen and oxygen are considered elements whereas water is not considered an element.
what skills do strong academic writers possess
what is the difference between aquaculture and pisciculture?