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

The density of an object is defined as mass per unit volume. Mathematically we write that: D = M/V. Rearrange this expression for: (a) M = ? (b) V = ?
What was the League of Nations?
Scott deposits $5,000 at the end of each year into an account for five years. Assuming 6% interest semiannually, what is the value of his account in five years?
The Chinese developed a sense of superiority because of their a. military might. b. isolation from other cultures. c. contact with other cultures. d. develo
Choose the correct classification of 5x + 2x2 − 8 by number of terms and by degree. a.third degree polynomial b.fourth degree trinomial c.second degree trinomia
reproductive cell or sex cells are called
__________________ refers to the average increase in the Earth's temperature, which causes changes in climate. a. Climate Change b. The Ozone Melt c. Global
The Articles of Confederation placed most government power and responsibility with the local governments state governments federal government national governmen
Which of the following is an electromagnetic wave of energy? a. wind b. lightning c. natural gas d. ultraviolet light
what is the product in lowest terms -8/9 * 5/6 -1 -13/15 -20/27 -1/5