Python Forum
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
accumulator pattern
#3
x=2+4+6+8+[....]+198+200
Filling the dots is left as an exercise to the reader.

If you are mathematically inclined:
x=2*((100*101)*2)
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Messages In This Thread
accumulator pattern - by python_learner - Mar-09-2017, 05:36 PM
RE: accumulator pattern - by wavic - Mar-09-2017, 06:00 PM
RE: accumulator pattern - by Ofnuts - Mar-09-2017, 10:26 PM
RE: accumulator pattern - by zivoni - Mar-09-2017, 11:20 PM
RE: accumulator pattern - by Skaperen - Mar-10-2017, 08:18 AM
RE: accumulator pattern - by zivoni - Mar-10-2017, 09:36 AM
RE: accumulator pattern - by Ofnuts - Mar-10-2017, 10:26 AM
RE: accumulator pattern - by Ofnuts - Mar-10-2017, 08:48 AM
RE: accumulator pattern - by zivoni - Mar-10-2017, 11:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Accumulator/looping problem student8 5 5,533 Oct-16-2017, 01:24 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020