Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void DZIELNIKI (int n) {
- int i;
- for (i=1; i<=n; i++) /*na poczatku stwierdzilam ze podzielic to podzielic i wyskakiwal mi blad :) */{
- if (n%i==0) cout<<i<<" ";
- }
- }
- int main()
- {
- DZIELNIKI(23);
- cout<<endl;
- DZIELNIKI(25);
- cout<<endl;
- DZIELNIKI(16);
- cout<<endl;
- DZIELNIKI(125);
- cout<<endl;
- DZIELNIKI(77);
- cout<<endl;
- }
Add Comment
Please, Sign In to add comment