输出乘法口诀

#include<iostream>
#include<iomanip>
using namespace std;

int main()
{
int i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=i;j++)
{
cout<<i<<"*"<<j<<"="<<setw(2)<<i*j<<" ";
}
cout<<endl;
}
posted @ 2008-10-07 12:04  mzlogin  阅读(144)  评论(0编辑  收藏  举报