Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /* zrobione tylko na pani podanym przykładzie z 3 i 87 ponieważ to w tej chwili nie na moja glowe :) */
- void PODZIELNOSC (int a, int b) {
- int i;
- for (i=100; i<=999; i++) {
- if (i%b==0) cout<<i<<endl;
- }
- }
- int main()
- {
- PODZIELNOSC (3,87);
- return 0;
- }
Add Comment
Please, Sign In to add comment