Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Carlos Garcia
- Lesson2 Activity2
- Linear growth
- */
- package Lesson2;
- import kareltherobot.Directions;
- import kareltherobot.UrRobot;
- import kareltherobot.World;
- import java.awt.*;
- public class Activity2 implements Directions {
- public static void main(String[] args) {
- World.setDelay(1);
- World.setVisible();
- World.setBeeperColor(Color.blue);
- UrRobot zgod = new UrRobot(1, 1, North, -1);
- for (int i=10; i<=100; i+=10){
- for (int j=0; j<i;j++){
- zgod.putBeeper();
- }
- zgod.move();
- }
- zgod.setVisible(false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement