<?php function f($current_day, $delay) { return ((($current_day+$delay)%5)+1); } for($i = 1; $i < 8; $i++) { printf("f(%i, 1) => $i", $i, f($i, 1)); }
You have javascript disabled. You will not be able to edit any code.