SHARE
TWEET

Repetition by Using a Single Variable

jmyean Mar 19th, 2019 (edited) 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Jung Min Yean
  3.  * March 19, 2019
  4.  * First Program Ver1
  5.  */
  6.     // define constants and variables
  7. byte x = 3;
  8. byte y = 0;
  9. void setup()
  10. {
  11.   // declare your input and output
  12.   Serial.begin(9600);
  13. }
  14. void loop()
  15. {
  16.   // put your main code here, to run repeatedly:
  17.   x = x + 5;
  18.   Serial.println(y);
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top