Discrete Mathematics and Its Applications
7th Edition
Step 1: Set max = 1max=1.
Step 2: Compare 1 with
8. Since 1 < 81<8, set max = 8max=8.
Step 3: Compare 8 with
12. Since 8 < 128<12, set max = 12 max=12.
Step 4: Compare 12 with
9. Since 12 \nless 912≮9, maxmax is still 12.
Step 5: Compare 12 with
11. Since 12 \nless 1112≮11, maxmax is still 12.
Step 6: Compare 12 with
2. Since 12 \nless 212≮2, maxmax is still 12.
Step 7: Compare 12 with
14. Since 12 < 1412<14, set max = 14max=14.
Step 8: Compare 14 with
5. Since 14 \nless 514≮5, maxmax is still 14.
Step 9: Compare 14 with
10. Since 14 \nless 1014≮10, maxmax is still 14.
Step
10: Compare 14 with 4. Since 14 \nless 414≮4, maxmax is still 14.
0 Comments
Please share your feedback.
Thanks.