Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hazrat-Ali9/Computer-Programming
/ evenodd
Method
evenodd
Problem13.java:27–35 ·
view source on GitHub ↗
(int n)
Source
from the content-addressed store, hash-verified
25
}
26
27
public
static
String evenodd(
int
n) {
28
String result =
""
;
29
if
(n % 2 == 0) {
30
result =
"even"
;
31
}
else
if
(n % 2 != 0) {
32
result =
"odd"
;
33
}
34
return
result;
35
}
36
37
}
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected