Procedures
Aug. 4., 2008 | 06:13 pm
No:: kr15h
clean cat wash the cat(dirty cat) // a procedure for washing the cat
{
turn on the shower;
find the cat;
grab the cat;
put cat under shower;
wait 3 minutes; // wait for cat to get clean.
release cat;
}
This is a procedure for washing the cat. The name of the procedure is wash the cat, it uses a dirty cat as the input and returns a clean cat upon success. There are two brackets, an open bracket { and a closed bracket }, thats are used to indicate the beginning and end of the procedure. Inside the procedure are a bunch of statements, indicating the correct procedure for washing a cat. If you perform all of the statements then you should be able to turn a dirty can into a clean cat.
No http://www.ladyada.net/learn/arduino/