Found this simple yet attractive problem..Just a matter of finding the right loop...
The objective is to find the total length of an object that goes through alternating cycles viz.cycle A and cycle B, doubling in length at the first instance and then increasing by 1 in the latter...The problem is to find the length after N iterations...
The objective is to find the total length of an object that goes through alternating cycles viz.cycle A and cycle B, doubling in length at the first instance and then increasing by 1 in the latter...The problem is to find the length after N iterations...
Comments