SorinTurda

DetCifre

Nov 22nd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.09 KB | None | 0 0
  1. void detcifre(int n ,int &p ,int &u)
  2. {
  3.     p = n;
  4.     u = n % 10;
  5.     while(p > 9)
  6.         p /= 10;
  7. }
Add Comment
Please, Sign In to add comment