int a b要写在int main外面
2025-05-25 13:30:11
发布于:广东
12阅读
0回复
0点赞
int a b要写在int main外面
#include<bits/stdc++.h>
using namespace std;
int a,b;
int main(){
cin>>a>>b;
while(a||b){
if(a){
a--;
cout<<'#';
}
if(b){
b--;
cout<<'*';
}
}
return 0;
}
这里空空如也
有帮助,赞一个