Preview:
#include <iostream>

using std::cout;
using std::cin;
using std::endl;

int main() {

  int k;
  int n;
  int j;
  int t = 1;

  cout << "Введи число у которого хочешь узнать степени: " << endl;
  cin >> k;
  cout << "Введи количество степеней, которые ты хочешь узнать: " << endl;
  cin >> n;
  
  j = k;
  cout << "---------------------" << endl;
  cout << "Cтепень: " << t << " = " << k << endl;

  do {
    k *= j;
    cout << "Cтепень: " << t+1 << " = " << k << endl;
    t += 1;
  } while (n != t);

}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter