Advertisement
MeehoweCK

Untitled

Sep 3rd, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void ciag(int a, int b, int r)
  6. {
  7.     for(int liczba = a; liczba <= b; liczba += r)
  8.         cout << liczba << ", ";
  9.     cout << "..." << endl;
  10. }
  11.  
  12. int main()
  13. {
  14.     ciag(5, 100, 10);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement