How can i make a program that uses for statements to print "*"

OUTPUT as many asterisks for each row as that row number.

please tell me how can i write a program.

output should be:
*
**
***
****
*****
******
*******
********
*********
**********

Did you even try anything yourself to find the solution? The question sure looks like a homework assignment, which is not something you'll get help for here unless you show that you've actually tried and frankly I don't believe that you have.

So do the following:
Search for 'for loop' or something similar and try to understand what it does... then if you don't understand - post here some code of what _you_ have point out exactly which part _you_ don't understand. Then we will help you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.