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