0
Lesson 6.3 drawing class how do you pass it
It ask multiple different questions but expects to get the answers in each question when I code it all my answers end up in every questions so say there's 3 questions I code it and all 3 answers pop up in output for question 1 2 and 3 I'm Los on how to split the answers into the output for question 1 2 3
4 Antworten
+ 3
That's similar to your previous question, just that we do multiplication now.
int pupils = myObj.nextInt();
int pencils = myObj.nextInt();
System.out.println(pupils*pencils);
Keep in mind you are not asked multiple questions. You are asked one question, and the test cases simply use different example inputs to verify that your solution is generic. You should not care about the test cases at all.
+ 3
Crownedthain The code I provided in my answer above will pass all test cases.
+ 1
I see now I was actually writing out the math think you
0
It won't let me pass the practice unless all test cases are correct