我一开始还在想怎么调顺序呢,原来输出时把i和j交换就行了(百分百过,本人试过,加了代码框

凌愉晴  •  2个月前


#include<bits/stdc++.h>
using namespace std;
int main()
{
	for(int i=1;i<=9;i++)
	{
		for(int j=1;j<=9;j++)
		{
			cout<<i<<"*"<<j<<"="<<i*j<<" ";
		    cout<<endl;
 	    }
    }
}

评论: