RuiViana

Inverte numero

Jun 18th, 2018
147
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data