diff --git a/Three Friends/Solution Three Friends in C b/Three Friends/Solution Three Friends in C new file mode 100644 index 0000000..433775b --- /dev/null +++ b/Three Friends/Solution Three Friends in C @@ -0,0 +1,33 @@ +#include +int cal(int a,int b,int c){ + return abs(a - b) + abs(a - c) + abs(b - c); +} +int min(int a, int b){ + int mini; + if(a == b){return a;} + else{ + mini = a