Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n,k;
- cin>>n>>k;
- bool mai_mici_sau_egale=true;
- while(n)
- if(n%10>k)
- {
- mai_mici_sau_egale=false;
- break;
- }
- else
- n/=10;
- if(mai_mici_sau_egale)
- cout<<"DA\n";
- else
- cout<<"NU\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement