代码
#include <stdio.h>
#define HANG 9
#define LIE 9
int main(void)
{
int hang,lie;
for (hang=1;hang<=HANG;hang++)
{
for (lie=1;lie<hang;lie++)
{
printf(" ");
}
for (lie=hang;lie<=LIE;lie++)
printf("%2d*%2d=%2d ",hang,lie,hang*lie);
printf("\n");
}
getchar();
return 0;
}