text: // 023-Calculate Power of a Number.cpp 
  /*
  	you will learn to compute power to a number manually, and by using pow() function. 
  	https://www.programiz.com/cpp-programming/examples/power-number
  
  	To understand this example, you should have the knowledge of following C++ programming topics:
  		C++ while and do...while Loop (https://www.programiz.com/cpp-programming/do-while-loop)
  
  	This program takes two numbers from the user (a base number and an exponent) and 
  	calculates the power.
  
  		Power of a number = base^exponent
  
  	Standard library:
  	https://www.programiz.com/cpp-programming/library-function
  */
  
  #include <iostream>
  using namespace std;
  
  int main()
  {
  	int exponent;
  	float base, result = 1;
  	cout << "Enter base and exponent respectively:  ";
  	cin >> base >> exponent;
  	cout << base << "^" << exponent << " = ";
  	while (exponent != 0) {
  		result *= base;
  		--exponent;
  	}
  	cout << result;
  
  	return 0;
  }
  
  /*
  	#include <iostream>
  	#include <cmath>
  	using namespace std;
  	//Compute power using pow() Function
  
  	int main()
  	{
  		float base, exponent, result;
  		cout << "Enter base and exponent respectively:  ";
  		cin >> base >> exponent;
  		result = pow(base, exponent);
  		cout << base << "^" << exponent << " = " << result;
  
  		return 0;
  	}
  */
  
  // Run program: Ctrl + F5 or Debug > Start Without Debugging menu
  // Debug program: F5 or Debug > Start Debugging menu
  
  // Tips for Getting Started: 
  //   1. Use the Solution Explorer window to add/manage files
  //   2. Use the Team Explorer window to connect to source control
  //   3. Use the Output window to see build output and other messages
  //   4. Use the Error List window to view errors
  //   5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
  //   6. In the future, to open this project again, go to File > Open > Project and select the .sln file
  