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

Why do all market economies have taxes to support armed forces, police forces, public schools, and at least some form of public transportation? Socialist propag
Fill in the blank. The blank brace relieved the pain from his injury
The United States is made up primarily of the descendants of immigrants. a. True b. False 2. Undocumented residents face the danger of being caught and deported
18.194 rounded to the nearest hundredths
Loyalists supported the British and were also called ?
He welded the new Red Army into a disciplined fighting force? a. Lenin c. Trotsky b. Stalin d. Kerensky
how many times can 15 go into 75
What is the ratio, but NOTthe unit rate, if Dawn drinks 12 cups of coffee in 6 hours?
What can you infer about Macbeth's character from his hesitation to murder the king?
Show how to multiply 6x 298 using friendly numbers and then use properties and mental math.