Triangular Numbers

Started by
1 comment, last by Nibbles 22 years, 5 months ago
Hi, anybody know how to find out if a number is triangular (by programming) ie: 6 is triangular because 6=1+2+3, but 7 is not triangular because 7 != 1+2+3 or 1+2+3+4. Thanks, Scott Email Website
"If you try and don''t succeed, destroy all evidence that you tried."
Advertisement
thanks, but whatever programming language that is, I don''t get it

Email
Website

"If you try and don''t succeed, destroy all evidence that you tried."
nevermind I got it to work, turns out i''m just an idiot

thanks,
Scott

Email
Website

"If you try and don''t succeed, destroy all evidence that you tried."

This topic is closed to new replies.

Advertisement