Advertisement
gabbyshimoni

arrayExample08

Jun 2nd, 2018
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. /*
  2.   הגדרת שני מערכים והשוואה בינהם*/
  3.  
  4. char otiot[4] = {'r', '$', '<', '3'};
  5. char letters[4] = {'a', '$', '3', '3'};
  6. void setup() {
  7.   Serial.begin(9600);
  8.   for (int i = 0; i < 4; i++) {
  9.     if (otiot[i] == letters[i]) {
  10.       Serial.print(i);
  11.       Serial.print(" : ");
  12.       Serial.println(otiot[i]);
  13.     }
  14.   }
  15. }
  16.  
  17. void loop() {
  18.   // put your main code here, to run repeatedly:
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement