Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b,ca,cb,r;
- for (a=1,b=3;a<=100,b<=100;a=a+2,b=b+2)
- {
- ca=a;
- cb=b;
- while(ca)
- { r=cb%ca;
- cb=ca;
- ca=r;
- }
- if (cb==1){
- cout<<a<<endl;
- cout<<b<<endl;
- cout<<"pauza"<<endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement