int func4(int n) { // input condition: n >= 0 // output condition: returns 2*n int m = n; int k = 0; while (m > 0) { k += 2; m -= 1; } return k; }