Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class program {
- void start(num) {
- moveAndCount(succ(num));
- }
- void moveAndCount(num){
- if(frontIsClear){
- move();
- moveAndCount(succ(num));
- }else{
- iterate(num){
- putbeeper();
- }
- }
- }
- program() {
- start();
- turnoff();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment