Advertisement
MeehoweCK

Untitled

Apr 19th, 2021
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int licznik = 0;
  8.     int liczba = 1;
  9.  
  10.     while(licznik < 100)
  11.     {
  12.         if(liczba % 3 == 0 || liczba % 7 == 0)
  13.         {
  14.             cout << liczba << endl;
  15.             ++licznik;
  16.         }
  17.         ++liczba;
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement