#include <iostream>using namespace std;void PrintPattern(int n) { for (int i=n; i >= 1; --i) { for (int k=1; k <= i; ++k) { cout << k; } cout << endl; }}int main() {PrintPattern(6);return 0;}
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment