main()
{
Nine();
console,Readkey();
}
public static void Nine(string str)
{
string str1=" ";
fot( int i= 1;i<=9 ;i++ )
{
fot( int j=1 ;j<=i ; j++)
{
str+=i+"x"+j+"="+j*i +"/t";
}
}
console.write(str);
}
输出结果:
main()
{
Nine();
console,Readkey();
}
public static void Nine(string str)
{
string str1=" ";
fot( int i= 1;i<=9 ;i++ )
{
fot( int j=1 ;j<=i ; j++)
{
str+=i+"x"+j+"="+j*i +"/t";
}
}
console.write(str);
}
输出结果: