Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int podzielna=0;
- for(int i=100;i<=150;i++)
- {
- if(i%3==0)
- {
- podzielna++;
- }
- }
- cout<<"liczb podzielnych przez 3 w zakresie 100-150: "<<podzielna;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement