Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

desperate for help

Status
Not open for further replies.

ja23merz

Programmer
Dec 3, 2007
1
US
the problem is:
Suppose that a row of mailboxes is numbered from 1 to 150 and that beginning with mailbox 2, we open the doors of all the even-numbered mailboxes. Next, beginning with mailbox 3, we go to every third mailbox, opening its door if it is closed and closing it if it is open. we repeat this procedure with every fourth mailbox, then every fifth, and so on. write a program to determine which mailboxes will be closed when this procedure is completed.

I'm using Fortran 77, and I need to use arrays to solve this.
Thanks in advance.
 
Please, see Posting Policies link in the bottom of the send form.
If you have troubles with your homework, please, present your code but not a task description...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top