Advertisement
Lucky134Lucky

Cycles.C2

Feb 8th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main()
  7. {    int z;
  8.      cin>>z;
  9.      for (int i = 1; i < z; i++){
  10.  
  11.  
  12.             cout<<i<<",";
  13.  
  14.      }
  15.        cout<<z;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement