Problem 43222. Persistence will help you solve almost any problem.

Created by Marc Jakobi in Community

Create a function without inputs that adds one to the output every time it is called.

a = counterfun;
>> 1
a = counterfun;
>> 2
% etc.

Solution Stats

73.17% Correct | 26.83% Incorrect
Last solution submitted on May 14, 2019

Solution Comments

Recent Solvers16

Suggested Problems

More from this Author16