//
// Operators and mathematical expressions
//
void setup()
{
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
Serial.begin(9600); // open serial connection to PC
}
void loop()
{
int a, b;
a = analogRead(0);
b = analogRead(1);
digitalWrite(2, a);
digitalWrite(3, b);
Serial.print(a);
Serial.print(" ");
Serial.println(b);
delay(500);
}