Skip to content

[Problem] Difference of the squares #27

@ademclk

Description

@ademclk

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions