Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.  
  9. double X=21,957.207375;
  10. int N = 3, M=-3, r=20
  11. int index = n+1;
  12. int D = pow(radix, index);
  13. int R=X;
  14.  
  15.  
  16. for(index>M; index=M: index--)
  17. {
  18. Y= r*R;
  19. Z= Y/D;
  20.  
  21. Q= floor(Z);
  22. R=(Y-Q*D);
  23.  
  24. cout << D << Y << Z << Q << R<< endl;
  25.  
  26. }
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. return 0;
  35.  
  36.  
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement