@(a,b,c)max(c-b+a,0) disp(ans(3,4,4))disp(ans(1,2,3))disp(ans(1,5,3))
Standard input is empty
ans = @(a, b, c) max (c - b + a, 0) 3 2 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!