99乘法表FOR表示

#include <stdio.h>
#include <stdlib.h>
int main()
{
    int a,b,sum;


    for(a=1;a<=9;a++)
    {
        for(b=1;b<=a;b++)
        {
            sum=a*b;
            printf("%dx%d=%d ",b,a,sum);
        }


        printf("\n");
    }




    system("pause");
    return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_42252769/article/details/80559254