Advertisement
Lucky134Lucky

CyclesB

Feb 8th, 2016
66
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.  
  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. if (i == z)
  12. cout<<z;
  13. else cout<<i<<",";
  14. }
  15.  
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement