• + 0 comments

    very simple....

    static int profit(int b, int s, int c) {
            return (b+s)-c;
        }