MCPcopy Create free account
hub / github.com/Hazrat-Ali9/Computer-Programming / evenodd

Method evenodd

Problem12.java:21–29  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

19 }
20
21 public static String evenodd(int n) {
22 String result = "";
23 if (n % 2 == 0) {
24 result = "even";
25 } else if (n % 2 != 0) {
26 result = "odd";
27 }
28 return result;
29 }
30
31}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected