//created by Emily Picolla
//HW3
int input = 5; //Input equals 5
int sqr(int x) {
return x * x; //function sqr returns value of x times itself
}
void setup() {
// put your setup code here, to run once:
Serial.begin (9600); //Initalize serial communication;
delay (500); //Delay 5 sec;
Serial.println ("Program started");
int result = sqr(input); //Calculates the square of the input using sqr() function, called "result";
Serial.println ("Result is"); //Print "Result is"
Serial.println (result); //Print the result
}
void loop() {
//empty loop;
}