int foo(int a, int b) { int s,t; a = abs(a); b = abs(b); s = 0; t = a; do { s = s + b; t --; } while(t > 0); return s; }