/*=========================================
* Copyright (c) 2020, 逐风墨客
* All rights reserved.
*
* 文件名称:study_9x9.c
* 运行环境:Linux操作系统
* 功能描述:打印9x9乘法口诀表
=========================================*/
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int i, j;
system("clear");
for (i=1; i<=9; i++)
{
for (j=1; j<=i; j++)
{
printf("%dx%d=%2d ", j, i, i*j);
}
printf("\n");
}
return 0;
}
程序运行结果: