In ra hình vẽ sau:
Output
* *** ***** ******* ********* *********** * * *
code c++
using namespace std; int main() { cout<<" "<<'\n'; cout<<" *"<<'\n'; cout<<" *"<<'\n'; cout<<" **"<<'\n'; cout<<" **"<<'\n'; cout<<"**"<<'\n'; cout<<" *"<<'\n'; cout<<" *"<<'\n'; cout<<" *"<<'\n'; return 0; }
Bình luận
code c++
include <bits/stdc++.h>
using namespace std;
int main()
{
cout<<" "<<'\n';
cout<<" *"<<'\n';
cout<<" *"<<'\n';
cout<<" **"<<'\n';
cout<<" **"<<'\n';
cout<<"**"<<'\n';
cout<<" *"<<'\n';
cout<<" *"<<'\n';
cout<<" *"<<'\n';
return 0;
}
16 bình luận nữa