question regarding solution for zybooks question

I'm currently useing zybooks for my intro to web design class. we are currently on java and arithmetic. the question is Write a statement that assigns finalValue with the multiplication of number1 and number2. Ex: If number1 is 6 and number2 is 2, finalValue is 12. but it also says the code is tested with two values one being 6 and 2 the other being 4 and -2.

when I write the code for 6 and 2 with the finalvalue being 12 that part works but if i do the exact same thing useing 4 and -2 it will only say on worked not both. how do i write this properly so that both values work?

Read more here:

Content Attribution

This content was originally published by Meagan Huisjen at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: