diff --git a/half_pyramid.cpp b/half_pyramid.cpp new file mode 100644 index 0000000..745dda5 --- /dev/null +++ b/half_pyramid.cpp @@ -0,0 +1,19 @@ +#include + +using namespace std; + +int main(){ + int n; + cin>>n; + for (int i = 0; i =0; j--) + { if( j<=i) + cout<<"*"; + else cout<<" "; + } + cout<<"\n"; + } + + return 0; +} \ No newline at end of file