Advertisement
Filipe_Chagas

Untitled

Dec 14th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.13 KB | None | 0 0
  1. #include <math.h>
  2. int enesimo_algarismo(int numero, int algarismo)
  3. {
  4.     return (  (int)floor( numero / pow(10,algarismo) )  ) % 10;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement