2.
Conditional and Repetitive Execution
navigate_next
2.10.
Exercise: Good Old Tiling
search
Quick search
code
Show Source
The Workbook for Programming with Python for Engineers
Table Of Contents
1. Dive into Python
1.1. Debt
1.2. Varying Debt
1.3. Division
1.4. Exercise: Greetings
1.5. Exercise: Headphones
1.6. Exercise: Conflict of Metrics
1.7. LCD Shipment
1.8. Exercise: Jogging at Devrim
1.9. Tiling the Floor
1.10. Exercise: Tiling the Floor with Minimum Tiles
1.11. Movie Festival
1.12. Exercise: Circle and Sphere
1.13. Reflection Point
1.14. Exercise: BMI
1.15. Exercise: Distance between Circles
1.16. Cube Extraction
1.17. Pool
1.18. Exercise: Django
1.19. Vector
1.20. Slogan
1.21. Exercise: Grading in CENG314
1.22. Exercise: Fuel Tank
1.23. Tuples and Lists
1.24. Inner Elements
1.25. Lego
1.26. Dictionaries
1.27. Exercise: Minimum and Maximum of Three
2. Conditional and Repetitive Execution
2.1. Letter Grade
2.2. Even or Odd
2.3. Ticket Price
2.4. Orders from Abroad
2.5. Winner Team in Board Game
2.6. Apple Tree Garden
2.7. Exercise: New Apple Garden Tree
2.8. Repeated Strings
2.9. Exercise: Office Olympics
2.10. Exercise: Good Old Tiling
2.11. Exercise: Triangle
2.12. Exercise: Fizz Buzz
2.13. Binary Planet
2.14. Run-length Encoding
2.15. Exercise: Connect Four
2.16. Obsessed Tiler
2.17. Matrix Multiplication
2.18. Exercise: Incomplete Data
2.19. Emotional Chatbot
2.20. Minesweeper
2.21. Exercise: Original Minesweeper
2.22. N-Queen
2.23. Helping Deroro
2.24. Helping Deroro Quickly
The Workbook for Programming with Python for Engineers
Table Of Contents
1. Dive into Python
1.1. Debt
1.2. Varying Debt
1.3. Division
1.4. Exercise: Greetings
1.5. Exercise: Headphones
1.6. Exercise: Conflict of Metrics
1.7. LCD Shipment
1.8. Exercise: Jogging at Devrim
1.9. Tiling the Floor
1.10. Exercise: Tiling the Floor with Minimum Tiles
1.11. Movie Festival
1.12. Exercise: Circle and Sphere
1.13. Reflection Point
1.14. Exercise: BMI
1.15. Exercise: Distance between Circles
1.16. Cube Extraction
1.17. Pool
1.18. Exercise: Django
1.19. Vector
1.20. Slogan
1.21. Exercise: Grading in CENG314
1.22. Exercise: Fuel Tank
1.23. Tuples and Lists
1.24. Inner Elements
1.25. Lego
1.26. Dictionaries
1.27. Exercise: Minimum and Maximum of Three
2. Conditional and Repetitive Execution
2.1. Letter Grade
2.2. Even or Odd
2.3. Ticket Price
2.4. Orders from Abroad
2.5. Winner Team in Board Game
2.6. Apple Tree Garden
2.7. Exercise: New Apple Garden Tree
2.8. Repeated Strings
2.9. Exercise: Office Olympics
2.10. Exercise: Good Old Tiling
2.11. Exercise: Triangle
2.12. Exercise: Fizz Buzz
2.13. Binary Planet
2.14. Run-length Encoding
2.15. Exercise: Connect Four
2.16. Obsessed Tiler
2.17. Matrix Multiplication
2.18. Exercise: Incomplete Data
2.19. Emotional Chatbot
2.20. Minesweeper
2.21. Exercise: Original Minesweeper
2.22. N-Queen
2.23. Helping Deroro
2.24. Helping Deroro Quickly
2.10.
Exercise: Good Old Tiling
¶
Look at the Question
Tiling the Floor
in the previous chapter. Now, try to write program without
\(\color{purple}{\texttt{gcd()}}\)
function.
Hint: “The Euclid Algorithm”
Previous
2.9. Exercise: Office Olympics
Next
2.11. Exercise: Triangle