WiktoriaRatajczyk

Zadanie 8

Mar 22nd, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. /* zrobione tylko na pani podanym przykładzie z 3 i 87 ponieważ to w tej chwili nie na moja glowe :) */
  5. void PODZIELNOSC (int a, int b) {
  6.     int i;
  7.     for (i=100; i<=999; i++) {
  8.     if (i%b==0) cout<<i<<endl;
  9.     }
  10. }
  11.  
  12. int main()
  13. {
  14.     PODZIELNOSC (3,87);
  15.     return 0;
  16. }
Add Comment
Please, Sign In to add comment