0

Plzz explain this algo

sum += pow(2*i, 2);

14th Aug 2018, 3:12 PM
White code
White code - avatar
3 Réponses
0
input is 3 and output 56 explain
14th Aug 2018, 3:19 PM
White code
White code - avatar
0
2*2+ 4*4+6*6= 56 ....
14th Aug 2018, 3:23 PM
White code
White code - avatar
0
Happy to help explains well. just by that line of code, I was not able to guess it was in a loop;; is it possible to share the whole code, or is that the only thing that was given?
14th Aug 2018, 9:29 PM
Jang Jaeung
Jang Jaeung - avatar