This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % the function should return 0. You may assume the second input is % always an INTEGER. function out = recursiveMod(in1,in2) if in2 < 0 out = 0; elseif (in1-in2) < 0 out = in1; else out = recursiveMod((in1-in2),in2); end...
View Full Document
This note was uploaded on 10/22/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.
- Fall '08