MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / Solution

Class Solution

MiddleOfThree.java:1–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Solution{
2 int middle(int A, int B, int C){
3 //code here
4
5 if(A>B)
6 {
7 if(A<C) return A;
8
9 else if(B>C) return B;
10
11 else return C;
12 }
13 else
14 {
15 if(B<C) return B;
16
17 else if(A>C) return A;
18
19 else return C;
20 }
21 }
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected