#include <stdio.h>
int main(){
int i,j,k=1;
int loop_count = 10;
for(i=1;i<loop_count;i++){
if( i > 1){
for(j=0;j<i+k;j++){
if( i == 2 )
printf("*");
else{
if( j%k == 0)
printf("*");
else
printf(" ");
}
}
k++;
}else
printf("*");
printf("\n");
}
return 0;
}
dbfud1988
0
Newbie Poster
gusano79
247
Posting Shark
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
dbfud1988
0
Newbie Poster
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.