A program in pascal/java/c

invalid@example.com (SerbiaPhantom), SerbiaPhantom
Sun, 05 Nov 2023 06:02:19 +0000

So my teacher told me if I do this question right,i would get an A .If anyone could write this program for me it would be amazing:
A fly is jumping on an infinite string.For the first time it jumps 1cm in one direction.The second time she jumps 3cm in any direction(left or right),the third 5cm in any direction(left or right).Every time it jumps,the next time it will jump 2cm more in any direction.Is it possible for it to jump for x(input)times and on the x-th jump,it will land on the...

A program in pascal/java/c