Maid
Programming Language
Official Guided Web Interpreter
1
# function definitions func greet(name) { serve("Welcome to " + name + "!"); } greet("Maid"); serve("Use this web terminal as you read through the textbook!"); # looping walk i = 0 through 10 { serve("'i' is equal to: " + tostring(i)); if i == 5 { leave; } } while 1 == 1 { serve("Inside a while loop"); leave; } walk i = 0 through 5 { serve(i); } func new_car() { give "Jeep Grand Cherokee"; } func start_driving(car) { serve("Car '" + car + "' is driving"); } func stop_driving(car) { serve("Car '" + car + "' has been stopped"); } obj my_car = new_car(); start_driving(my_car); stop_driving(my_car);
Output will appear here...
Run Maid Code