Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4. ifstream fin("date.in");
  5. int main()
  6. {
  7. int a,b,x,y,r;
  8. fin>>a>>b;
  9. x=a;
  10. y=b;
  11. r=a&b;
  12. while (r!=0){
  13. a=b;
  14. b=r;
  15. r=a&b;
  16. }
  17. if (b==1)
  18. cout<<"Da";
  19. else cout<<"Nu";
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement