int i=0; for(i=0 ; i<=100; i++) { if(i % 2 == 0) { printf("%d = %d\n",i, i*i*i); } else { printf("%d = %d\n",i, i*i); } }