Hello
I am beginner with arduino
can we write this sketch more simply
Thank you
int result;
int result1;
int result2;
int long tabDurees[] = {52000,40000,3000,250};
void setup()
{
Serial.begin(9600);
}
void loop()
{
{
result = tabDurees[0] - tabDurees[1] ;
result1 = (result - tabDurees[2] ) ;
result2 = (result1 - tabDurees[3] ) ;
Serial.println (result) ;
Serial.println (result1) ;
Serial.println (result2) ;
}
while(1);
}/code]