反复提交都是70分,不理解也不知道错哪里了
查看原帖
反复提交都是70分,不理解也不知道错哪里了
757115
liutongxue楼主2024/6/2 11:48
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a;
	cin>>a;
	int b=1,c=1;
	while(b<=a)
	{
		while(c<=b)
		{
			cout<<b<<" ^ "<<c<<" = "<<pow(b,c)<<" ";
			c++;
		}
		cout<<endl;
		c=1;
		b++;
	}
	return 0;
}
2024/6/2 11:48
加载中...