phantomon

Untitled

Oct 5th, 2011
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. class program {
  2.  
  3.     void start(num) {
  4.         moveAndCount(succ(num));
  5.     }
  6.     define moveAndCount(num){
  7.         if(frontIsClear){
  8.             move();
  9.             moveAndCount(succ(num));
  10.         }else{
  11.             iterate(num){
  12.                 putbeeper();
  13.             }
  14.         }
  15.     }
  16.     program() {
  17.         start();
  18.         turnoff();
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment