Home

May. 29th, 2008

Geek Dad, or using Perl to do math

Yesterday [info]littlemeridian came to me and said she knew the sum of 1+2+3... etc to 100. She had figured out a way to solve the problem without adding all the numbers.
"I can bang out a perl program that can do the math," I said, not convinced she was right (she was right, btw). So we sat at my computer and I wrote this easy program that adds consecutive numbers up to a limit you specify from <STDIN>. It took us a little while to get the math right but we eventually got it.
see the code )

Jan. 26th, 2008

Childcare Needed (paid)

Want to make $100 on the weekend of Feb. 8,9,10? Adrien and Matt want to have a weekend get-away. We’re looking for childcare from Friday evening to Sunday afternoon or evening.

  • Stay at our house!
  • Eat our food!
  • Hang out with the greatest kids in the whole world!
  • Bask in the glory of our new bathroom!
  • Do your laundry in our giant laundry machines!
  • Enjoy our DSL and wireless internet!

If you are interested, please get in touch with Matt or Adrien.

mangavatar

November 2009

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930     

Advertisement

Syndicate

RSS Atom
Powered by LiveJournal.com