daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Sep 17th, 2016 173 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define rep(i,x,y) for (int i=x;(x<=y?i<=y:i>=y);i=(x<=y?i+1:i-1))
  5.  
  6. int main() {
  7.     rep(i,1,10) printf("%d ", i);
  8.     puts("");
  9.     rep(i,10,1) printf("%d ", i);
  10.     puts("");  
  11.     return 0;
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top