Miscellaneous › Others › C-Program for rectangular pyramid..code required › Here loop to generate
May 14, 2013 at 12:38 pm
#9746
Participant
Here loop to generate pattern
for(i=0;i<4;i++)
{
for(j=0;j<4;j++)
{
if(i==j)
{
printf(“a”);
}
else
{
printf(“b”);
}
}
printf(“n”);
}