While loop exercise

this program shows how a while loop works.