乘法运算格式。
实例
include
int main() {
int i, j, n;
n = 3;
j = 1;
for(i = n; i <= (n*10); i+=n) {
printf("%3d x %2d = %3d\n", n, j, i);
j++;
}
return 0;
}
运行结果:
3 x 1 = 3
3 x 2 = 6
3 x 3 = 9
3 x 4 = 12
3 x 5 = 15
3 x 6 = 18
3 x 7 = 21
3 x 8 = 24
3 x 9 = 27
3 x 10 = 30