Consider the following c++ code of a function:
A(int n) { i = 1; S = 1; while (S<=n) { i++; S = S + i; printf("Edward"); } } <