// D test program functions.d CSE413 6/99, rev 5/00 // Scope test. These functions do nothing particularly interesting, // but they do it in interesting ways. int f(int x,int y) { int g ; if (x > y) g = x * y - x; else g = x - y *x ; return g(x,g); } int g(int x, int y) { // exchange values of x and y (how?) x = x + y; y = x - y; x = x - y; return x; } int main() { return f(17,42); }