Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- a, b, i, q, sum: integer;
- begin
- readln(A, B);
- for i := A to B do
- begin
- q := sqr(i);
- sum := sum + q;
- end;
- write(Sum);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement