From 34d43f22981a7351e75b73c0a3f878a71d3c8b0e Mon Sep 17 00:00:00 2001 From: Abhiraj Singh Bhadoria <115582321+Abhirajxo@users.noreply.github.com> Date: Thu, 27 Oct 2022 22:14:39 +0530 Subject: [PATCH] HACKTOBERFEST 2022 --- rohmbus.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 rohmbus.cpp diff --git a/rohmbus.cpp b/rohmbus.cpp new file mode 100644 index 0000000..5011478 --- /dev/null +++ b/rohmbus.cpp @@ -0,0 +1,20 @@ +#include +using namespace std; + +int main() +{ + int n; + cin>>n; + + for(int i=1;i<=n;i++){ + for(int j=1;j<=n-i;j++){ + cout<<" "; + } + for(int j=1;j<=n;j++){ + cout<<" *"; + } + cout<