现在的位置: 首页 > 综合 > 正文

打印一个九九乘法表

2014年07月17日 ⁄ 综合 ⁄ 共 211字 ⁄ 字号 评论关闭

#include <iostream>

using namespace std;

int main()

{

    int bcs,cs;

    for (bcs = 1; bcs<=9; bcs++)

    {

        for (cs = 1; cs<=bcs; cs++)

        {

            cout<<bcs<<'*'<<cs<<'='<<bcs*cs<<' ';

        }

        cout<<endl;

    }

    system("pause");

    return 0;

}

抱歉!评论已关闭.