Advertisement
jmyean

Repetition by Using Original Input

Mar 19th, 2019
128
0
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.   y = x + 5;
  18.   Serial.println(y);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement