Hi I have very little knowledge of programming. Please help me with this program.
1) Sholey Program
In Ramghad there are 100 people including U
U are a food inspector.
Gabbar wants to kill all the people except one.
He tells samba to make the people of Ramghad to stand in a line one by one.
He tells samba to kill people in odd fashion
e.g if there are people say:
123456789.......then only odd will be killed
2468 .........will remain
now kill odd of them (2,6)
4 8 ......will remain now
then 4 will be killed since 4 is odd now
....survivor is 8
Now the problem is U should create a program to find the survivor for
N number instead of 100