I am not able to understand how to print the first the first number of every row like in 1st row number starts from 1 , 2nd row number starts from 2, 3rd row number starts from 3 , but in 4th row number starts from 5 and in 5th row number starts from 8 . Please tell me how should i print the first number of every row
Pattern Rhombus
refer this https://ide.codingblocks.com/s/607657
1. nsp (number of spaces)-> Number of spaces in very First Line of the pattern.
2. nst (number of stars)-> Number of stars in very first line of the pattern.
3. csp (counter of spaces)-> counter of spaces that will print the required number of spaces and will be initialized with 1 and incremented upto nsp.
4. cst (counter of stars)-> counter of spaces that will print the required number of stars and will be initialized with 1 and incremented upto nst.
5. rows -> It will be initialized with 1 and will go upto the total number of rows in the pattern.
I hope ur doubt is cleared now???
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.