Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- unsigned x,uc,aux=0,ok=1;
- cout<<"x=";cin>>x;
- while (x!=0&&ok==1) {
- uc=x%10;
- aux=(x/10)%10;
- if (uc<=aux)
- //break;
- ok=0;
- x/=10;
- }
- if (ok)
- cout<<"da";
- else
- cout<<"nu";
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement