算法训练 乘法表

问题描述
  输出九九乘法表。
输出格式
  输出格式见下面的样例。乘号用“*”表示。
样例输出
下面给出输出的前几行:
1*1=1
2*1=2 2*2=4
3*1=3 3*2=6 3*3=9
4*1=4 4*2=8 4*3=12 4*4=16

……

include<stdio.h>
int main()
{
	int i,j;
	for(i=1;i<=9;i++)
	{
		for(j=1;j<=i;j++)
		{
		printf("%d*%d=%d ",i,j,i*j);
		
		}printf("\n");
	}
	return 0;
}


猜你喜欢

转载自blog.csdn.net/Fhujinwu/article/details/78503677