Advertisement
alex326

Untitled

Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. problema 408
  2.  
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. int n,a=0,d=2,c=2;
  8. cin>>n;
  9. while (n!=0){
  10. a=a*10+(n%10);
  11. n=n/10;
  12. }
  13. while (d<=a/2){
  14. if (a%d==0)
  15. c++;
  16. d++;
  17. }
  18. cout<<c;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement