Advertisement
_takumi

Nums_up_to_N

Aug 6th, 2019
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. using namespace std;
  4. int N = 10;
  5.  
  6. int main()
  7. {
  8.   static int x = 1;
  9.   if (cout << x << " " && x++ < N && main())
  10.   { }
  11.   return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement