1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#define _CRT_SECURE_NO_DEPRECATE #include <stdio.h>
int main(void) { printf("number\tsquare\tcube\n"); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 0, 0, 0); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 1, 1, 1); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 2, 2*2, 2*2*2); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 3, 3 * 3, 3 * 3 * 3); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 4, 4 * 4, 4 * 4 * 4); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 5, 5 * 5, 5 * 5 * 5); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 6, 6 * 6, 6 * 6 * 6); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 7, 7 * 7, 7 * 7 * 7); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 8, 8 * 8, 8 * 8 * 8); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 9, 9 * 9, 9 * 9 * 9); printf("%d\t\t\t\t\t%d\t\t\t%d\n", 10, 10 * 10, 10 * 10 * 10);
return 0; }
|