Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- int main() {
- int num = 10;
- int power = 4;
- int total = 1;
- for (int i = 0; i < power; i++) {
- total *= num;
- }
- std::cout << num << " raised to the power of " << power << " is " << total << "\n";
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement