I wrote this programthis program for another challengeanother challenge, but I decided to try and make it a valid answer for this one too:
Shirred Eggs.
This recipe prints the number 2 and, in doing so, yields two delicious
shirred eggs.
Ingredients.
2 eggs
Cooking time: 12 minutes.
Pre-heat oven to 175 degrees Celsius.
Method.
Put eggs into mixing bowl. Pour contents of the mixing bowl into the
baking dish. Shirr the eggs. Bake the eggs until shirred.
Serves 1.
As I mentioned in the other answer, it seems pretty hard to write anything in Chef that involves something more complicated than mixing stuff in a bowl and baking it, and still have it work both as a program and as a recipe.
Edit: Changed the recipe from fried to shirred eggs — thanks to Blazer for the suggestionthe suggestion! The cooking time and temperature should be considered advisory only; I haven't actually tried the recipe yet myself, so I can't vouch for their accuracy.