Skip to content

Instantly share code, notes, and snippets.

@kopylovvlad
Created April 17, 2016 18:51
Show Gist options
  • Save kopylovvlad/7afac49e6d940bbea68d542418faca31 to your computer and use it in GitHub Desktop.
Save kopylovvlad/7afac49e6d940bbea68d542418faca31 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int n,i;
cout << "Введите число N" << endl;
cin >> n;
for( i = n; i > 0; i-- )
{
if( n % i == 0 )
{
cout << "Делитель: " << i << endl;
}
}
system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment