int doSomething(int a, string str, double b) void doSomething() { print "hello world" for (int i=0; i < 20; i = i + 1) int user = prompt "number?" print user * i endfor } ---------------------------- while (user != 0) print "0 to QUIT, 1 for Chickens, 2 for Geese, 3 for Parrots" user = prompt "Your choice?" if (user == 1) then chickenMenu() else if (user == 2) then gooseMenu() else if (user == 3) then parrotmenu() endif endWhile ---------------------------- void square() int userNum = prompt "your number?" print "square is " + userNum * userNum end square void cube() int userNum = prompt "your number?" print "cube is " + userNum * userNum * userNum endModule void main() { cube() square() } ---------------------------- void forward() for (int i = 0; i <= 10; i = i + 1) print i endfor end forward void backward() for (int i = 10; i >= 0; i = i - 1) print i endfor end forward void usercounter() String user = "dummy" while (user != "QUIT) user = prompt "forward, backward or QUIT?" if (user == "forward") then forward() else if (user == "backward") then backward() endif endwhile end usercounter ---------------------------- ---------------------------- ----------------------------