Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- int main(int argc, char *argv[])
- {
- int a;
- cout<<"Podaj liczbe: ";
- cin>>a;
- cout<<"Podzielna przez:";
- if(a%2==0) cout<<" 2";
- if(a%3==0) cout<<" 3";
- if(a%5==0) cout<<" 5";
- if(a%7==0) cout<<" 7";
- cout<<endl;
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement