[C語言]9*9乘法口訣表
代碼
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a, b;
for (a = 1; a <= 9; a++)
{
for (b = 1; b <= a; b++)
{
printf("%d*%d=%d\t", b, a, a*b);//用\t水平製表符使每列對齊
}
printf("\n");
}
system("pause");
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a, b;
for (a = 1; a <= 9; a++)
{
for (b = 1; b <= a; b++)
{
printf("%d*%d=%d\t", b, a, a*b);//用\t水平製表符使每列對齊
}
printf("\n");
}
system("pause");
return 0;
}
說明: 以下介紹示例的MCU地址空間如下: ROM空間爲:0x0000 0000 – 0x0000 8000 RAM空間爲:0x2000 0000 – 0x2000 2000