Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n,ogl,nrd,d;
- cin>>n;
- ogl=0;
- while(n!=0)
- {
- ogl=ogl*10+n%10;
- n=n/10;
- }
- ///cout<<ogl<<"\n";
- d=1;
- nrd=0;
- while(d<=ogl/2)
- {
- if(ogl % d == 0)
- nrd = nrd+1;
- d++;
- }
- nrd++;
- cout<<nrd<<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement