...

>

Exercise: Debugging 101

Exercise: Debugging 101

Exercise on fixing code for a mathematician.

Task

The mathematician needs help. He wrote some code to calculate the square of two numbers. However, he wrote lots of unnecessary statements. His math and logic are correct. He correctly used loops and the addition ...