Advertisement
RuiViana

Inverte numero

Jun 18th, 2018
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1.   int xpto1 = K / 10;                 // Inverter um numero
  2.   Serial.println(xpto1);
  3.   int xpto2 = xpto1 * 10;
  4.   Serial.println(xpto2);
  5.   int xpto3 = K - xpto2;
  6.   Serial.println(xpto3);
  7.   int xpto4 = xpto3 * 10;
  8.   Serial.println(xpto4);
  9.   int xpto5 = xpto4 + xpto1;
  10.   Serial.println(xpto5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement