MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / pattern1

Method pattern1

Programs/patterns/Pattern1.java:11–19  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

9// * * *
10// * * * *
11 private static void pattern1(int n) {
12 // for every row, run the col
13 for (int row = 0; row <= n; row++) {
14 for (int col = 0; col < row; col++) {
15 System.out.print("* ");
16 }
17 System.out.println();
18 }
19 }
20}
21

Callers 1

mainMethod · 0.95

Calls 1

printMethod · 0.80

Tested by

no test coverage detected