0

How to solve case 2 problem.... After solving case 1 correctly ....

Problem

27th May 2022, 5:06 AM
Mohammad Zakir
4 Respostas
+ 1
Mohammad Zakir I am assuming you are trying to solve a code coach problem that has multiple test cases. The trick is to write code that will output correct answers according to the different inputs. We will need to see your attempt in order to help you further
27th May 2022, 6:00 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
That's what Rik is saying. You have to write a code that will solve ANY/ALL input, not just 1 case. If I want to know what some number plus 2 will equal, then I need to code a sum that will accept any number for "some number". Pseudocode int someNum = user.input int totalSum = someNum + 2 print totalSum Hope that helps
27th May 2022, 11:02 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Mohammad Zakir Pls edit your question, including: 1. A link to your code in Code Playground 2. A description of the task 3. A tag with the language name (pls remove all others) Don't make it that hard to help you.
27th May 2022, 11:23 AM
Emerson Prado
Emerson Prado - avatar
0
Sir when I write a code for case 1 it's solve successfully And case 2 case 3 Show input not same
27th May 2022, 6:11 AM
Mohammad Zakir