Advertisement
maxlarin2

Dayana1

Dec 1st, 2012
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. var
  2. a, b, i, q, sum: integer;
  3.  
  4. begin
  5. readln(A, B);
  6. for i := A to B do
  7. begin
  8. q := sqr(i);
  9. sum := sum + q;
  10. end;
  11. write(Sum);
  12. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement