Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1.  
  2.     // Linijka zwracająca długość inta:
  3.     floor(log10(liczba))+1;
  4.  
  5.     // Zwraca pierwszą cyfrę inta: WŁASNA FUNKCJA KURDE POTĘGI!
  6.     liczba/(int)potega(10.0, floor(log10(liczba)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement