🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Star190 Wed, 26 Mar 1997 00:00
I NEED HELP ON A BASIC PROBLEM******************
#251
Author: Star190
Date: Wed, 26 Mar 1997 00:00
14 lines
964 bytes
Produce a listing of all three-digit numbers whose digits are 1,2,3. 
Spaces are not to appear between the digits of the numbers.  (hint: use
triple-nested loops with control variables I, J, and K ranging from 1 to
3.  If I, J, and K are the digits, the number is 100 x I + 10 x J + K.)

This is the problem that i have to work.  I don't understand how to use a
triple-nested loop when i don't know how many possibilities there will be.
 (For I=1 to ?)  If anyone can help me solve this problem i would be very
greatful.

Thank you, 

Sandi
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads