Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int a0,a1,a2,w;
- cout<<"Podaj dowolna liczbe z przezialu {1...65536}"<<endl;
- cin>>a0;
- if(a0<=0)
- {
- cout<<"Podales liczbe nie nalezaca do przedzialu, BLAD"<<endl;
- return 0;
- }
- a1=(75*a0)%65536;
- for(int i=0;i<10;i++)
- {
- w=(75*a1)%65536;
- a2=a1;
- a1=w;
- cout<<w<<endl;
- }
- cout<<"Skonczylem..."<<endl;
- }
Add Comment
Please, Sign In to add comment