Unformatted text preview: % perfect squares between 1 and N inclusive. Store your answer in the % variable B. Replace every ? with the necessary code. You must utilize % this while loop to receive any credit. % num = 1; B = 0; while num<=N % change this line if mod(sqrt(num),1)==0 % change this line (it finds perfect squares) B=B+1; end num = num+1; end...
View Full Document
- Fall '08
- Vector Space, Imperative programming, necessary code