0
How to solve case 2 problem.... After solving case 1 correctly ....
Problem
4 Antworten
+ 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
+ 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
+ 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.
0
Sir when I write a code for case 1 it's solve successfully
And case 2 case 3
Show input not same