Guest User

Untitled

a guest
Dec 11th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <locale.h>
  3. #include <cmath>
  4. using namespace std;
  5. int main(void)
  6. {
  7. int a, i;
  8. setlocale(LC_ALL,"Russian");
  9. cout<<"введите число:";
  10. cin>>a;
  11. for (i=a;i>=1;i--){
  12. if (a%i==0)
  13. cout<<i<<"-делитель числа"<<endl;
  14. }
  15. //system("pause");
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment