Function Main
Declare Integer i, j, r
Output "Input number of rows : "
Input r
For i = 0 to r
For j = 1 to r-i
Output " "
End
For j = 1 to 2*i-1
Output "*"
End
Output ""
End
For i = r-1 to 1 decreasing
For j = 1 to r-i
Output " "
End
For j = 1 to 2*i-1
Output "*"
End
Output ""
End
End
I am Md. Anisur Rahman. I have completed Cyber Security for MSCSE at United International University in 2022.I have completed PGDIT from IIT, Jahangirnagar University in 2020. I'm a Head of IT at Programming24 School.
View all posts by Md. Anisur Rahman