Mega Code Archive
Categories
/
C
/
Data Type
Display a table of squares and cubes
#include
int main(void) { int i; for(i = 1; i < 20; i++) printf("%8d %8d %8d\n", i, i * i, i * i * i); return 0; }