Lesson 6.3 drawing class how do you pass it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

6th Nov 2021, 4:13 PM
Crownedthain
4 Answers
+ 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.
6th Nov 2021, 4:20 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Crownedthain The code I provided in my answer above will pass all test cases.
6th Nov 2021, 4:26 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
I see now I was actually writing out the math think you
6th Nov 2021, 4:29 PM
Crownedthain
0
It won't let me pass the practice unless all test cases are correct
6th Nov 2021, 4:25 PM
Crownedthain