// 输出九九乘法表.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n,i,j;
cin >> n;
_ASSERT(n!=1 && n>1 && n<=9 );
for( i = 1;i<=n;i++)
{
for( j = 1;j<=i;j++)
{
cout << j << '*' << i << '='<< j*i ;
if(j==i)
{
cout <<endl;
}
else
{
cout <<',';
}
}
}
system("pause");
return 0;
}
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n,i,j;
cin >> n;
_ASSERT(n!=1 && n>1 && n<=9 );
for( i = 1;i<=n;i++)
{
for( j = 1;j<=i;j++)
{
cout << j << '*' << i << '='<< j*i ;
if(j==i)
{
cout <<endl;
}
else
{
cout <<',';
}
}
}
system("pause");
return 0;
}