Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- double X=21,957.207375;
- int N = 3, M=-3, r=20
- int index = n+1;
- int D = pow(radix, index);
- int R=X;
- for(index>M; index=M: index--)
- {
- Y= r*R;
- Z= Y/D;
- Q= floor(Z);
- R=(Y-Q*D);
- cout << D << Y << Z << Q << R<< endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement