This preview shows page 1. Sign up to view the full content.
Unformatted text preview: o P2.3.2 4. Modify lecture example SqrtWhile.m to include graphics. In each iteration draw the rectangle using function DrawRect. Draw the rectangles side-by-side, lining up the top of the rectangles. 5. Write a program fragment to determine whether a user input value x is prime. Display the value and either "is prime" or "is composite."...
View Full Document
This note was uploaded on 02/28/2008 for the course CS 100 taught by Professor Fan/vanloan during the Fall '07 term at Cornell.
- Fall '07