void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
//call the function
//store result
int result=multiply(16,15);
Serial.println(result);
//delay so that fuction excutes completely
delay(100);
exit(0); //exit loop
}
//multiply function
//takes two variabes and results
//their product
int multiply(int a,int b){
return a*b;
}