print a pattern as follows-

March 2, 2011 at 08:05:32
Specs: Windows XP
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7 7
8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 9

See More: print a pattern as follows-

Report •

#1
March 2, 2011 at 08:40:14
Why would I want to do that?

If you can't tackle a simple assignment like this without asking someone to do it for you then I think you may be on the wrong course.


Report •

#2
March 2, 2011 at 20:51:04
In the spirit of "technically valid". . .
include <iostream>
int main() {
  std::cout << "1\n2 2\n3 3 3\n4 4 4 4\n5 5 5 5 5\n6 6 6 6 6 6\n7 7 7 7 7 7 7\n"
            << "8 8 8 8 8 8 8 8\n9 9 9 9 9 9 9 9 9\n"; return 0;
}

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question