C++ Codes
Algorithms
Algorithm Analysis in C++
Beginners
Code Snippets
Graphics
Data Structures
File Manipulation
Games
Mathematics
Miscellaneous
Visual C++ Library
C++ > Code Snippets sample source codes
Multiply a number by a power
Multiply a number by a power #include
using namespace std; int main() { int number,power,count,i; cout << "Enter Number: "; cin >> number; cout << "Enter the power: "; cin >> power; count = 1; for (i=1; i <=power; i++) count = count*number; cout << count << endl; return 0; }
Privacy Policy
|
Link to Us
|
Links