Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int podzielna=0;
  6. for(int i=100;i<=150;i++)
  7. {
  8. if(i%3==0)
  9. {
  10. podzielna++;
  11. }
  12.  
  13. }
  14. cout<<"liczb podzielnych przez 3 w zakresie 100-150: "<<podzielna;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement