Generate a square table





#include <stdio.h>

#define SQR(x) ((x(x))



int main()

{

    int counter = 0;



    while (counter < 5)

        printf("x %d square %d\n", counter, SQR(++counter));



    return (0);

}

  



           

       

Tags: , , , , , ,

Leave a Reply