0

Can anyone tell me how to complete the mdule 4 quiz 3rd question

int calc (int n) { int result = 0 ; for (int i=1 ; i<=n;i++){ result += i ; } ____result;

7th Dec 2022, 2:37 AM
Chandula Ruwanjeewa
1 Respuesta
+ 3
Hint: You need to issue a `return` statement to hand the <result> over to the function caller. Tips: Don't hesitate to experiment with the code in Playground
7th Dec 2022, 2:55 AM
Ipang