gabbyshimoni icon

arrayExample08

gabbyshimoni | PRO | 06/02/18 09:53:59 AM UTC | 0 ⭐ | 643 👁️ | Never ⏰ | []
C++ |

420 B

|

None

|

0 👍

/

0 👎

/*
  הגדרת שני מערכים והשוואה בינהם*/
 
char otiot[4] = {'r', '$', '<', '3'};
char letters[4] = {'a', '$', '3', '3'};
void setup() {
  Serial.begin(9600);
  for (int i = 0; i < 4; i++) {
    if (otiot[i] == letters[i]) {
      Serial.print(i);
      Serial.print(" : ");
      Serial.println(otiot[i]);
    }
  }
}
 
void loop() {
  // put your main code here, to run repeatedly:
 
}

Comments