打印乘法表

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/my_kingdom/article/details/50390307

问题描述:打印乘法表

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int i,j;
    for(i=1;i<10;i++){
        for(j=1;j<i+1;j++){
            printf("%d*%d=%d ",i,j,i*j);
            if(i==j)
                printf("\n");
        }
    }
}


猜你喜欢

转载自blog.csdn.net/my_kingdom/article/details/50390307