Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define D2( D ) printf( "%d\n", 1##D - 999 );
- #define D1( D ) D2(D##0) D2(D##1) D2(D##2) D2(D##3) D2(D##4) \
- D2(D##5) D2(D##6) D2(D##7) D2(D##8) D2(D##9)
- #define D0( D ) D1(D##0) D1(D##1) D1(D##2) D1(D##3) D1(D##4) \
- D1(D##5) D1(D##6) D1(D##7) D1(D##8) D1(D##9)
- int main( )
- {
- D0( 0 ) D0( 1 ) D0( 2 ) D0( 3 ) D0( 4 )
- D0( 5 ) D0( 6 ) D0( 7 ) D0( 8 ) D0( 9 )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement