This is a code I wrote to calculate a number to the power of another number, and then it outputs the result. I need afterwards this result to be used as a number which is equal to the number of folders created. How can I implement folder creation code that uses "result" as the number of folders to create.
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int a;
int b;
cout << "Input fist number : \ n";
cin >> a;
cout << "Input second number : \ n";
cin >> b;
cin.ignore();
int reslut = pow((double)a, b);
cout << "The reslut is" << " " << reslut << endl;
cin.get();