Steven_Barry_Week4_cp - Call MoveWorm Module End main...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Main module Declare WormLength As Real Declare Distance As Real Write "Enter the length of the worm" Input WormLength Write "Enter the distance of worm from the apple" Input Distance
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Call MoveWorm Module End main module MoveWorm module While Distance >= 0 Distance = Distance - WormLength End While Write "The worm has reached the apple!" End MoveWorm module...
View Full Document

This note was uploaded on 01/15/2012 for the course IT 210 210 taught by Professor Professory during the Spring '10 term at University of Phoenix.

Ask a homework question - tutors are online