Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(void){
- int i,n;
- cout<< " Ingrese un numero: "<<endl;
- cout<<"--------------------"<<endl;
- cin>>n;
- cout<<"--------------------"<<endl;
- cout<<"Los divisores son: "<<endl;
- for(i=1;i<=n;i++){
- if(n%i== 0){
- cout<<"--"<<i<<"--"<<endl;
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment