Debugging is the process of spending hours finding a typo that can be corrected in 0.1 s. Annoying, but unavoidable.
Let's do it together!
Question
Find the errors in the following macro and correct them:
A buggy macro
// Starting valuenumber=0;// Add the sum of all odd values up to 9for(i=0;i<9;i++){// increase number only if i is oddif(i%2!=1){number+=i}}// Create a string and printstring="The number is "+number".";print(string)// The number should be 25