How to solve error: expected identifier or ‘(‘
You got nested loop with do/while. Make sure that each start with do end with while. Look like at the end of file, the “while” is not correct. That could be you missing the close ‘}’ before ‘while (rows <= height);’ Correct code could be: