lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 30-Aug-05, at 11:23 AM, Boyko Bantchev wrote:

I ran it with  DO(i,0,9, printf("i = "); printf("%d\n",i););

through gcc and it worked as needed.

Try:

DO(i, 0, 9,
   int j, k;
   j = 2 * i;
   k = i + 1;
   printf("i = %d, j = %d, k = %d\n", i, j, k);
);

:)