Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication2.cpp : This file contains the 'main' function. Program execution begins and ends there.
- //
- #include "pch.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int x = 0;
- int y=0;
- int z = 0;
- cin >> x;
- cin >> y;
- z = x;
- for (int i = 1; i < y; i++)
- {
- z *= x;
- }
- cout << z;
- }
Add Comment
Please, Sign In to add comment