问题:
write a program that calculates the squares and cubes of the numbers from 0 to 10 and uses tabs to print the following table of values:
#include<stdio.h>
#include<stdlib.h>
int main(void) {
printf("number\tsquare\tcube\n");
for (int i = 0; i <= 10; i++) {
printf("%d\t%d\t%d\n", i, i*i, i*i*i); //不存在i,i^2,i^3 error!!!!
}
system("pause");
return 0;
}