There is a room with 1000 light switches, numbered 1, 2, 3,
4, ... 1000, all turned off.
Outside the room there are 1000 men, numbered man1, man2,
...man 1000
In order, each man walks into the room and changes the
position of each switch that is a multiple of his number.
That is: man1 flips every switch
man2 flips switches 2, 4, 6, 8 ....1000
man3 flips switches 3, 6, 9, ..... 999
.....
Man 1000 flips switch 1000
After all 1000 men are done, how many switches are on?
Answer Posted / orenise
The above code does not work, Please ignore it. I will Post
the answer, when i got the correct Code.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to set on/off a group of indicators in a single statement?
what are other resources are needed for this mantis?
pleasew define carrier scope in abap (sap).
hoe to data grid use in sql server 2000?
please any one pass file aid,xpeditor and endeavor tools
In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..
Colors specified with the notation
what are the differences between CONS, LIST, and APPEND
Write a program to find factorial of a number using functions
Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?
1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END
Differevce between arrays and array builders?
I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!
could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?
Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod