You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pull request fixes the following errors in the given code: 1) In line 11, the division operator should be "/" instead of "*". 2) In line 17, the subtraction sign between "n" and "-" is incorrectly written. It should be a minus sign at the beginning of the term. 3) In line 21, the definition for multiply function should return the sum of multiplication of "x" and "y" and not the difference. 4) In line 26, the variables "a" and "d" in the print statement have been swapped. They should be printed in the following order. 5) The input statement for getting the number of terms in GP does not have a type specified, it should be "int"
The text was updated successfully, but these errors were encountered:
The pull request fixes the following errors in the given code: 1) In line 11, the division operator should be "/" instead of "*". 2) In line 17, the subtraction sign between "n" and "-" is incorrectly written. It should be a minus sign at the beginning of the term. 3) In line 21, the definition for multiply function should return the sum of multiplication of "x" and "y" and not the difference. 4) In line 26, the variables "a" and "d" in the print statement have been swapped. They should be printed in the following order. 5) The input statement for getting the number of terms in GP does not have a type specified, it should be "int"
The text was updated successfully, but these errors were encountered: