Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- ifstream fin("date.in");
- int main()
- {
- int a,b,x,y,r;
- fin>>a>>b;
- x=a;
- y=b;
- r=a&b;
- while (r!=0){
- a=b;
- b=r;
- r=a&b;
- }
- if (b==1)
- cout<<"Da";
- else cout<<"Nu";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement