Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <locale.h>
- #include <cmath>
- using namespace std;
- int main(void)
- {
- int a, i;
- setlocale(LC_ALL,"Russian");
- cout<<"введите число:";
- cin>>a;
- for (i=a;i>=1;i--){
- if (a%i==0)
- cout<<i<<"-делитель числа"<<endl;
- }
- //system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment