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

#3235
bhavin
Participant

Question 19 answer:

#include
#include
void main(){
int i,j;clrscr();
for(i=1;i<=5;i++){
for(j=1;j<=i;j++){
printf("*");    
}    
printf("n");
}
getch();
}

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