打印9*9乘法口诀

c语言不夯实,工作两行泪。

#include<stdio.h>
int main()                                                                 //1x1
{              
	//1x2  2x2
	//for (int i = 0; i < 500; i++)
	for (int i = 1; i < 10; i++)
	{
		for (int j = 1; j < i+1;j++)
		{
			printf("%d * %d = %d ",j,i,i*j);
		}
		printf("\n");
	}
	while (1);
	return 0;
}

猜你喜欢

转载自blog.csdn.net/suntingsheng123/article/details/88978942