Monday, October 7, 2013

ALGORITHM TO FIND BIGGEST OF TWO NUMBERS (BASED ON “IS STRUCTURE”)



STEP 1.      big <-- 0, num1 <-- 0, num2 <-- 0
STEP 2.       Read num1, num2
STEP 3.       big <-- num1
STEP 4.       Is (num2 > big) Then
Begin
big <-- num2
End
            STEP 5.       Print big

No comments:

Post a Comment