Bug Title: arithmetic miscalculation-multiplication Description: bug is multiplication miscalculation. for odd numbers, multiplication not reaches the actual result we want,as well as expected result. 1*1=1 , 3*3=9,5*5=25. but for even numbers reaches the expected result we want.
in this operation when calculator takes odd number then it gives wrong output. it adds one in actual value and then returns output. when it takes even number then it gives right output..
Bug Title: arithmetic miscalculation-multiplication Description: bug is multiplication miscalculation. for odd numbers multiplication not reaches the actual result we want as well as expected result. 1*1 1 3*3 9 5*5 25. but for even numbers reaches the expected result we want.
When the given two inputs are even the expected result and actual result tally but when the given two inputs are odd the result goes wrong. Problem exits with business logic.
RE: Q. Calculator performs this operation 1*1=2, 2*2=4, 3*3=10, 4*4=16, 5*5=26Identify the bug and write bug title and description.
Please do mention that when two Identical (Same) Odd Numbers are multiplied the output (Actual Result) is Incorrect and does not match with Expected Result. The Out Put is getting incremented by One Value
RE: Q. Calculator performs this operation 1*1=2, 2*2=4, 3*3=10, 4*4=16, 5*5=26Identify the bug and write bug title and description.
Odd numbers when multiplied by itself produces the answer as : Square of the number + 1. Even numbers when multiplied by itself produces the correct results.
RE: Q. Calculator performs this operation 1*1=2, 2*2=4, 3*3=10, 4*4=16, 5*5=26Identify the bug and write bug title and description.
TITLE Calculator performs multiplication errors when odd numbers are multiplied with themselves (ex: 5 * 5); one is always added to the result (ex: 5 * 5 26).
DESCRIPTION The following problem was discovered in the calculator's multiplication function:
When multiplying odd numbers with themselves the result is always one number greater than it should be. Only odd numbers 1 through 5 were tested. Though not verified it is assumed that the behavior exists for all odd numbers that are multiplied with themselves. Even numbers 2 and 4 were tested and these operations produced correct results.
Examples:
Operation Actual Result Expected Result 1 * 1 2 1 3 * 3 10 9 5 * 5 26 25
As mentioned above even numbers produce proper results.