写代码神器
查看原帖
写代码神器
1435840
liuyuhan1522楼主2024/9/14 21:26
for(int k=1;k<=9;k++)
	{
		cout<<"case "<<k<<":cout<<\"";
		for(int i=1;i<=k;i++)
		{
			for(int j=1;j<=i;j++)
			{
				c=pow(i,j);
				cout<<i<<" ^ "<<j<<" = "<<c<<" ";
			}
			cout<<"\\n";
		}
		cout<<"\";break;\n";
	}
2024/9/14 21:26
加载中...