void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ROMEO!");
int num1 = 10; //1st integer variable
int num2 = 5; //2nd integer variable
int sum = num1 + num2;
Serial.println("Sum: " + String(sum)); //should = 15
int difference = num1 - num2;
Serial.println("Difference: " + String(difference)); //should = 5
int product = num1 * num2;
Serial.println("Product: " + String(product)); //should = 50
Serial.print("Product: " + String(product)); //should = 50
Serial.println("Product: " + String(product)); //should = 50
//Serial.println() prints the data and then moves the cursor to a new line, whereas
//Serial.print() prints the data but keeps the cursor on the same line.
int num3 = 1;
int num4 = 5;
int summ = num3 + num4;
Serial.println("1 + 5 = " + String(summ)); //this works, needs to be done properly
int a = 20;
int b = 30;
if(a > b)
Serial.println("a is greater than b");
else
Serial.println("a is not greater than b");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}