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

Method main

Problem13.java:7–25  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

5public class Problem13 {
6
7 public static void main(String[] args) {
8 // TODO Auto-generated method stub
9 Scanner input = new Scanner(System.in);
10 int T = input.nextInt();
11
12 while (T < 1 || T > 100) {
13 T = input.nextInt();
14 }
15
16 for (int i = 0; i < T; i++) {
17 int n = input.nextInt();
18 int length = String.valueOf(n).length();
19 while (n < 0 || length > 100) {
20 n = input.nextInt();
21 }
22 System.out.println(evenodd(n));
23 }
24 input.close();
25 }
26
27 public static String evenodd(int n) {
28 String result = "";

Callers

nothing calls this directly

Calls 1

evenoddMethod · 0.95

Tested by

no test coverage detected