Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var
  2. I,J,s1,s2,d1,d2,it1,it2,ans:integer;
  3.  
  4. begin
  5. it1 := 3;
  6.  
  7. d1 := 7;
  8. d2 := 3;
  9.  
  10. for I := 1 to 100 do
  11. begin
  12. it2 := 2;
  13.  
  14. for J := 1 to 100 do
  15. begin
  16. if it2 = it1 then
  17. ans := ans + it1;
  18.  
  19. it2 := it2 + d2;
  20. end;
  21. it1 := it1 + d1;
  22. end;
  23.  
  24. writeln(ans);
  25. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement