Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code error #8

Open
SaisaranF22 opened this issue May 28, 2024 · 0 comments
Open

code error #8

SaisaranF22 opened this issue May 28, 2024 · 0 comments

Comments

@SaisaranF22
Copy link
Owner

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant