// Example of a function that does // not return any value, but takes // two input arguments (both int) void multiply (int a, int b) { int product = a * b; println(product); } // Example of a function that returns a value and // takes two input arguments (both ints) int doSomething (int base, int ex) { // raise base to the ex-th power int result = 1; while (ex > 0) { result = result * base; ex--; } return result; } void setup () { multiply(3, 4); println(doSomething(2,5)); } void draw() { }