/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
int main()
{
int i,j,k;
i=-4;
while(i<=4)
{
j=5;
k=i;
if(k<0)
k=-k;
while(j>k)
{
printf(" * ");
j--;
} printf("\n");
i++;
}
return 0;
}