Advertisement
gabbyshimoni

arrayExample01

Jun 2nd, 2018
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. /*
  2.  * הגדרת מערך בסיסי עם אתחול והדפסת הערכים בתאים השונים
  3.  */
  4.  int numbers[4] = {1,-23,17,12345};
  5. void setup() {
  6. Serial.begin(9600);
  7. Serial.print("numbers[0]=");Serial.println(numbers[0]);
  8. Serial.print("numbers[1]=");Serial.println(numbers[1]);
  9. Serial.print("numbers[2]=");Serial.println(numbers[2]);
  10. Serial.print("numbers[3]=");Serial.println(numbers[3]);
  11. }
  12.  
  13. void loop() {
  14.   // put your main code here, to run repeatedly:
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement