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

[Problem] Difference of the squares #27

Open
ademclk opened this issue Aug 17, 2022 · 6 comments
Open

[Problem] Difference of the squares #27

ademclk opened this issue Aug 17, 2022 · 6 comments
Labels
challenges good first contribution Good for new contributors good first issue Good for newcomers

Comments

@ademclk
Copy link
Owner

ademclk commented Aug 17, 2022

Difference of the squares

Sum of the squares: $1^2 + 2^2 + 3^2 + ... + 10^2 = 385$

Square of the sums: $(1 + 2 + 3 + ... + 10)^2 = 55^2 = 3025$

Difference of the squares: $3025 - 385 = 2640$

For a given input n find the difference of the squares. Print out sum of the squares, square root of the sum and difference between them.

@ademclk ademclk added good first issue Good for newcomers challenges good first contribution Good for new contributors labels Aug 17, 2022
@ankitgujral7
Copy link
Contributor

you mean square of the sum?...

@ademclk
Copy link
Owner Author

ademclk commented Aug 19, 2022

you mean square of the sum?...

My bad. I updated the comment.

@Hiba-Zubair
Copy link

is this issue available for assignment ?

@ademclk
Copy link
Owner Author

ademclk commented Aug 19, 2022

is this issue available for assignment ?

I received a solution in C++. If you have different approach to the problem or want to solve in another language you can.

@Legoeggolas
Copy link
Contributor

Is it okay if I solve multiple issues and open a single pull request instead of one for each issue?

@ademclk
Copy link
Owner Author

ademclk commented Aug 20, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenges good first contribution Good for new contributors good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants