Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int licznik = 1;
- int dzielnik1 = 7;
- int dzielnik2 = 3;
- int liczba = 1;
- do
- {
- if((liczba % dzielnik1 == 0) && (liczba % dzielnik2 ==0))
- {
- cout << licznik << ". : " << liczba << endl;
- licznik++;
- }
- liczba++;
- }while(licznik <= 100);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement