In article <1134492174.602565.40410...g49g2000cwa.googlegroups.com>,
"AMBROZE" <ambroze_ebay...comcast.net> wrote:
> I need a counter that will increment and create output something like
> this:
> 1 - 1
> 1 - 2
> 1 - 3
> 2 - 1
> 2 - 2
> 2 - 3
> 3 - 1
> 3 - 2
> 3 - 3
> Need to set the first columns to a variable.Pseudo-code:
for i from 1 to 3
for j from 1 to 3
print i "-" j
end
end
Translating this into whatever language you're using is a simple
exercise for the reader.
Isn't this something from about week 4 or 5 of a beginning programming
class?
Barry Margolin, barmar...alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
barry_margolin
| Tue, 20 May 2008 10:58:00 GMT |