Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hazrat-Ali9/Computer-Programming
/ drawSquare
Method
drawSquare
Problem14.java:33–40 ·
view source on GitHub ↗
(int number)
Source
from the content-addressed store, hash-verified
31
}
32
33
public
static
void
drawSquare(
int
number) {
34
for
(
int
i = 0; i < number; i++) {
35
for
(
int
j = 0; j < number; j++) {
36
System.out.print(
"*"
);
37
}
38
System.out.println();
39
}
40
}
41
}
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected