Solution 190253

Submitted on 12 Jan 2013
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% fname='FizzBuzz.txt'; out=FizzBuzz(fname); fid=fopen(fname); for i=1:100 if ~mod(i,15) v_exp='FizzBuzz'; elseif ~mod(i,5) v_exp='Buzz'; elseif ~mod(i,3) v_exp='Fizz'; else v_exp=num2str(i); end v=fgetl(fid); assert(strcmp(v,v_exp)) end fclose(fid);
Error: Cannot find an exact (case-sensitive) match for 'FizzBuzz' The closest match is: fizzbuzz in /users/msssystem9/fizzbuzz.m