hi,
there, im doing a small program and the output should be as below
@
**
@@@
****
@@@@@
Ive coded it, but it gives different answers..please help.the code is as below.
#include <stdio.h>
int main()
{
int i,j,k,m,a,y;
for(k=1;k<=3;k++){
for(j=1;j<=5;j++){
for(i=1;i<=j;i++){
printf("@");
}
printf("\n");
for(i=1;i<=j+1;i+=1){
printf("*");
}
printf("\n");
}
}
return 0;
}