Trying for loop instead of while loop

sir i am trying to apply for loop for pattern 1 and output is coming different

please tell how can i send photos and videos of my doubts .if possible solve the pattern 1 with for loop

@2000kartikgaur
Please paste your code here,save it


and send the link.
For Screenshots,you can directly add them over your doubts.

@2000kartikgaur
Please send your while coded logic,i will help you to do it with for loop.
The code can be sent as mentioned above.