Home Forums C Programming Problem solving few assignments in C language Reply To: Problem solving few assignments in C language

#3236
bhavin
Participant

qution no 20: answer


#include
#include
void main()
{
int i,j;
clrscr();

for(i=1;i<=5;i++)
{
if(i==4)
i=4+1;
for(j=1;j<=i;j++)
{
printf("*");
}
printf("n");
}
getch();
}

output:
*
**
***
*****