每日一练:打印九九乘法表
/***********************************************************编程打印九九乘法表
************************************************************/
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int i,j,n;
printf("please input the crow n:");
scanf("%d",&n);
for(i = 1;i <= n;i++)
{
for(j = 1;j <= i;j++)
{
printf("%d * %d = %2d ",i,j,i * j);
}
printf("\n");
}
return 0;
}