G2A Many GEOs
SHARE
TWEET

Untitled

a guest Mar 31st, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <Windows.h>
  3.  
  4.  
  5.  
  6. int main()
  7. {
  8.     int value = 100; //для кого чекаем количество цифр
  9.     _asm
  10.     {
  11.         mov eax, value
  12.         mov bx, 10d
  13.         xor ecx, ecx
  14.         xor edx, edx
  15.         digit_cycle:
  16.         inc ecx
  17.         div bx
  18.         cmp eax, 0
  19.         jne digit_cycle
  20.         mov value, ecx
  21.     }
  22.     std::cout << value << '\n';
  23.    
  24.     int max_num;
  25.     _asm
  26.     {
  27.         mov ecx, 1
  28.         mov eax, 1
  29.  
  30.         fib_cycle:
  31.         mov ebx, eax
  32.         inc ecx
  33.         mul ecx
  34.         cmp edx, 0
  35.         je fib_cycle
  36.         dec ecx
  37.         mov max_num, ecx
  38.         mov value, ebx
  39.     }
  40.     std::cout << max_num << ' ' << value;
  41.  
  42. }
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top