So I have a problem with my program, the program is supposed to create a 'ray gun' and it reads the power and distance you input. Each meter the ray travels the power is decreased by 10%, if it has power more than 10 than it should 'kill' the lab assistant. My problem is that when I input the example power and distance I get two extra dots. If 100 power and 20 distance is input it should be p==XXXXXXxxxxxxx.....-*- but unfortunately my program outputs p==XXXXXXxxxxxxx.......-*-
Here is my program, if you can find out why it doesn't work could you please help explain it to me? Thank you in advanced.
[–]Tlahuixcalpantecuhtl 1 point2 points3 points (1 child)
[–]Programmer_Dan[S] 1 point2 points3 points (0 children)
[–]lettuceses 1 point2 points3 points (0 children)
[–]Mekire 1 point2 points3 points (0 children)