Advertisement
gabbyshimoni

targil_loop1

Apr 30th, 2018
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. void setup() {
  2.   Serial.begin(9600);
  3.   int x, y1, y2;
  4.  
  5.   for (x = -10; x <= 10; x++) {
  6.     y1 = x * x + 8;
  7.     y2 = x + 10;
  8.     if (y1 == y2) {
  9.       Serial.print("x="); Serial.print(x);
  10.       Serial.print("y1="); Serial.print(y1);
  11.       Serial.print("y2="); Serial.print(y2);
  12.     }
  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