Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b;
- cin>>a>>b;
- int f1=0,f2=1;
- do
- {
- int aux;
- aux=f1;
- f1=f1+f2;
- f2=aux;
- }
- while (f1<a);
- if(f1==a&&f2==b)
- cout<<"DA";
- else cout<<"NU";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement