CMPS 002 - Computer Literacy

Prof. Paulo Franca

CyberSlug Rules!

Classes

Class Syllabus

Grading Policy

Labs

Interact

Login

  • enter system
  • get attendance
  • submit work
  • take lab quiz
  • check scores

Help

Help me!

Links

Staff only

 

 

 

Datacare   Ahshay

 

Loops

  • while (condition) do
    • while (top > 1) do readln (top);
    • while ((top > 1) and (value < 100)) do begin readln (value); count := count+1; end;
  • repeat ... until (condition)
    • repeat readln (value); until (value < 0);
    • repeat readln (value); count := count + 1; until ((value < 0) or (count > 100));