You're given problems and three friends: Petya, Vasya, and Tonya. For each problem, you know whether each friend is sure about the solution ( for sure, for unsure). A problem gets solved only if at least two friends are sure about it.
Your task: count how many problems the team will solve. This tests your understanding of if statements and counting patterns. You'll need to check a condition for each problem and keep track of how many pass the test.
Before reading further, think about what "at least two" means. How would you check if the sum of three numbers is at least ? That's the trick.