#include<conio.h>
#include<stdio.h>
void main()
{
int iRows;
clrscr();
printf("Enter a number :");
scanf("%d",&iRows);
if(iRows>0)
{
for(int iResult=0,iCount=0,iRows; iResult<=iRows; iResult++)
for(iResult=1,iCount=0,iRows; iCount<=iResult; iCount++)
printf("*");
printf("\n");
}//for
getch();
}//main
please help me to correct my source code: i should make a program like this:
*
**
***
****
*****
.
.
.
n
n is any positive number inputted by the user.