c how to program 习题2.31

发布于2020-03-12 748 热度

//c how to program 习题2.31
#include <stdio.h>

int main( void )
{
	int number = 0;
	printf("number\tsqure\tcube\n");
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
	number = number+1;
	printf("%d\t%d\t%d\n", number, number*number, number*number*number);
} 

记录工作,记录学习,分享知识,分享经验……