Jul-27-2017, 03:50 PM
(Jul-27-2017, 01:56 PM)Augustin1340 Wrote: For example:
Henry scored 20 goals ; Owen scored 16 goals and Drogba scored 12 goals. Then make the same thing with the variable goal2
I will wish to get this as fin result
Henry will have 10 points (6 + 4)
Owen will have 10 points (4 + 6)
Drogba will have 4 points (2+2)
We can't really talk about code until the input/output makes sense. And those numbers don't make sense.
If you score 20 goals, how do you have only 10 points? Where are 6 and 4 coming from? Is a goal only worth partial points?