👉 A flaw is a small, easily detected error that can cause a system or process to behave in unexpected ways. In computer science and software engineering, flaws are often used to describe errors in code or data that disrupt the functionality of an application or system. For example, consider a simple program that calculates the factorial of a given number n. If the input is not valid (n is negative), the program would return an error message indicating that the factorial is undefined for negative numbers. This flaw could be