qq_sunburst_23211116
include <iostream>using namespace std;class tu{ int i;public: tu(int n) { i = n; } void show();};void tu::show(){ int p = 1; int q; for (int i = 1; i <= 6; i++) { p = p+i-1; q = p; for (int j = i; j <= 6; j++) { cout << q << "\t"; q += j+1; } cout << endl; }}int main(){ int n; cout << "input n: "; cin >> n; tu q(n); q.show(); return 0;}