mxbr·7 वर्ष पहले·discuss 2 * (1..12).reduce(&:+) You could also use the closed summation formula: (n^2 + n) / 2. In our case that shortens to just 12*13=156.
mxbr·7 वर्ष पहले·discussFor Berlin, there is an interesting visualization of this question:https://verkehrsluecken.tagesspiegel.de/en/
You could also use the closed summation formula: (n^2 + n) / 2. In our case that shortens to just 12*13=156.